Forum Moderators: open
Hiding HTTP Referer - The Simple Way (PHP)
This is a simple way to hide the HTTP Referer when someone clicks on your links. Why would you want to do this? To stop your URLs appearing in the destination websites log files.
NOTE: I've tried this successfully with these browsers: Internet Explorer 6, Firefox (Mozilla), and Netscape 7.1. However (caveat!), Opera 7.11 still shows the referer for some reason, so this method is not foolproof. Still, most of the world seems to use IE, and this is so easy to implement it's probably worthwhile
Here is the really simple PHP to do this:
<?php
echo '<META HTTP-EQUIV="REFRESH" CONTENT="0; URL=http://' . $HTTP_GET_VARS['go2url'] . '">';
?>
Instructions For Use
1. Paste the above code into a file called redirect.php - or whatever you want to call it.
2. Upload the file to your website.
3. Change your link to look like this:
<a href="redirect.php?go2url=www.DESTINATIONURLHERE.com">Click here</a>
4. Er, that's it.
use like this:
<a href="redirect.php?go2url=URL HERE">Click here</a>