one thing i'm trying to do is to keep people from directly viewing a certain file (this has to do with cs).
this code doesn't work properly:
<?php
if(!$_SERVER['HTTP_REFERER']){
//
} else {
header("Location: http://www.ebay.com/?affid=12345");
}
?>
has anyone written anything on blocking direct access, so if someone enters the full url, they get taken to a different file or page? i don't want anyone to see that i'm using a fake image to stuff cookies. if they view the image it takes them to the ebay page.
this has been mentioned here, but nobody said how to do it....