How do I block my url from showing up in other people's referral logs?
August 17, 2005 6:34 PM
Subscribe
How do I block my url from showing up in other people's referral logs?
I am not doing anything shady here... it's just that I've put up a blog that I mainly want to share with friends and family. I don't want to go to the trouble of password protecting it, and I know that anything on the web can be seen by most anybody... but I would like to simply discourge visits from those who have no reason to be there. I've already set up robot.txt(s) to keep the search engines out, but I want to deter people from visiting the site just because my link shows up on their logs due to an occasional link I might post. I know there is a way to block the referring link address (as frequently other sites get blocked in my own logs), I just don't know how to do it. Anyone have a simple solution?
posted by RoseovSharon to computers & internet (10 comments total)
$URI=$_GET['URI'];
header("Referer: http://www.example.com");
eader("Location: $URI");
exit;
then you write your links as yourserver.com/redirect.php?URI=http://linkedpage.com/
this should show up in their logs as traffic coming frmo example.com.
google for "redirect script" and you should find plenty.
posted by joshwa at 6:50 PM on August 17, 2005