View Single Post
Old 23rd June 2008, 03:02 PM   #2 (permalink)
TygerTyger
Lumberjack and OK
 
Join Date: Aug 2004
Posts: 833
Code:
if (!empty($_SERVER['REFERER']) && strpos($_SERVER['REFERER'], 'domain.com') === false)
{
exit;
}
Since browsers can fake referrer headers aside from some serious work there's no real way to create restrictions, but that will at least deal with those not deliberately trying to get around it.

Last edited by TygerTyger : 23rd June 2008 at 06:10 PM.
TygerTyger is offline   Reply With Quote