Forum Moderators: open

Message Too Old, No Replies

How to not show a referal URL.

         

dak142

3:48 am on Feb 14, 2005 (gmt 0)

10+ Year Member



I am looking for a way to prevent my referal url from showing up in the web log of another site. This obviously happens if someont clicks on a link from one of my sites to another, but, I do not want thsi to happen. Are there any known solutions out there?

dak

tedster

3:03 pm on Feb 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I can't think of one - sending a referer in he header information a function of the user's browser that the webmaster has no way to control. It's up to each user afaik, and that's that.

dak142

3:28 pm on Feb 14, 2005 (gmt 0)

10+ Year Member



I actually found a solution, and it works, see below....

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>

bumpaw

5:49 pm on Feb 14, 2005 (gmt 0)

10+ Year Member



I am looking for a way to prevent my referal url from showing up in the web log of another site.

Could you elaborate as to why you want to do this?

monkeythumpa

3:27 am on Feb 15, 2005 (gmt 0)

10+ Year Member



Using the above method will mask which page they came from but not the site. You will need to create a seperate domain as a buffer between you and the destination.

Orbite

4:57 am on Feb 15, 2005 (gmt 0)

10+ Year Member




I am looking for a way to prevent my referal url from showing up in the web log of another site.

A very simple way : don't go there.

Why do you want to be sneaky? Looks to me you are only looking to hide a mischief.