Jump to content

Website security with headers NEED HELP QUICK!


nicholaspaul

Recommended Posts

I need to make sure that visitors to a webpage were directed from a certain other web page (ie., they didn't just type in the URL).

Can i do this with $_SERVER['HTTP_REFERER'] ? The logic I'm thinking is:

If $_SERVER['HTTP_REFERER'] is not www.payhere.com, then header ("Location: http://www.domain.com/error.html"); 

 

How might I go about this? My php knowledge is a bit ... limited. Any and all help appreciated!

 

Thanks.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.