Jump to content

Referring page?


acctman

Recommended Posts

Use the session suggestion.

 

All of the common web proxy scripts set 'HTTP_REFERER' to be the same as the url being requested, so any request to your page through a proxy will look like it is from someone already on your site. There is no guarantee that 'HTTP_REFERER' will contain anything or that it will accurately show that someone reached one of your pages from another one.

Link to comment
Share on other sites

Use the session suggestion.

 

All of the common web proxy scripts set 'HTTP_REFERER' to be the same as the url being requested, so any request to your page through a proxy will look like it is from someone already on your site. There is no guarantee that 'HTTP_REFERER' will contain anything or that it will accurately show that someone reached one of your pages from another one.

 

is there an example of how the set session method should be coded.

Link to comment
Share on other sites

If you knew that much, it wouldn't take but a search on Sessions to see how to use it.

 

In start.php set a session, in upload.php read if that session is set, if not, redirect them away.

 

uhh that didnt help much... i know that much. was asking for an example code.

Link to comment
Share on other sites

hmm i put the following below in the reg_gender.php page (1st page)

 


<?php

session_start();
$_SESSION['location'] = __FILE__;

?>

 

and then in the image imgupload.php page (2nd page) i put the following below.

 

<?php

session_start();
if($_SESSION['location']){
  echo $_SESSION['location'];
}

?>

 

but i was still able to access the imgupload.php page but typing in the URL and not having to go to the reg_gender.php page first.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.