$HTTP_Referer
Posted: Fri May 23, 2003 8:31 am
I need to check what the referer is to a certain page, and if it isn't a specific page, or domain, bounce the result elsewhere. I'm not entirely sure about how to go about this, or the syntax, as I'm just beginning with PHP, and I've been thrown in at the deepend. So I figure that I want something like this:
I imagine that this is fairly wrong, but am I going in the right direction, or not? Will the exclamation mark work in the situation, or should I do an else statement?
Cheers.
Code: Select all
if (!$HTTP_Referer == "page or domain") { header ("Location: $varurl"); }Cheers.