View Single Post
Old 04-04-2008, 10:20 PM  
Nookster
Confirmed IT Professional
 
Industry Role:
Join Date: Nov 2005
Location: Hollywood, CA
Posts: 3,744
Code:
$ref = $_SERVER['HTTP_REFERER'];
$pos = strpos($ref,'http://yoursite.com/members/');
$outp = ($pos === true) ? 'The referer is valid.' : 'Nice try.';
I think is what you're looking for, but remember the referer can be manipulated.
Nookster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote