Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6528221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:30:52+00:00 2026-05-25T09:30:52+00:00

If I want people only accessing a certain page on my webpage by using

  • 0

If I want people only accessing a certain page on my webpage by using a link within my website, and not typing it in the address box then would this do…

Please note that the user would first have to login to their account and all member pages have been set so that the user must login into their account before accessing member pages.

if (isset($_SERVER['HTTP_REFERER'])) {

// show page content

}

else {

header('Location:http://');
exit();
}

Am I correct in saying, that if a link is clicked then the page will show, but if the link is not clicked and the address of where the link points to is typed in the address bar it will do a redirect.

I am asking as the link will direct people to a form, and I don’t want that form being accessed without first having some variables set on the previous page, or being accessed without logging in (as people could create their own link on another website which points to the same location)

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T09:30:53+00:00Added an answer on May 25, 2026 at 9:30 am

    It is not secure in any way. From here:

    The address of the page (if any) which referred the user agent to the
    current page. This is set by the user agent. Not all user agents will
    set this, and some provide the ability to modify HTTP_REFERER as a
    feature. In short, it cannot really be trusted.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an RSVP box on my website where I want people to click
I want People Picker to display users from certain sharepoint groups only. I am
I have a special url which I would want only few people to have
I have a link_to_remote and I want to make sure people can only click
I want people to click on a link (generated from an asp:HyperlinkField) and have
There is this PHP script on my website which I don't want people to
Sorry for the long title, didn't want people just reading the title and not
A program we make come in different versions, and I only want people to
I want people to be able to sort things and not just me sorting
Not sure if people refer to slightly older questions but Accessing elements of python

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.