How to hide HTTP_REFERER value from landing page

Affiliate-Link-Cloak-hide

Sometimes we have to hide referer value to landing page. This is also called Link Masking or Link cloaking. Suppose we have Page A & a page B. Page A contains a link to page B. When we click on the link Page B has knowledge that from where user is coming. But if want to hide the url of Page A, then? This subject is very important in affiliate marketing.

Below were experiment to tackle conceal/blank referrer with output in different browsers.

If you are not a programmer then referer.us & spoofurl.com save your life.

Summary: There is no magic bullet, but using a combination of methods you can achieve the desired results. When using Opera, Chrome or Safari with Javascript disabled I have not found a way to properly blank the referrer while doing automatic redirection. Basicaly we are hiding the value of HTTP_REFERER.

Tested Running Windows XP

Browsers Tested
Internet Explorer 8.0.7600
Firefox 3.6.6
Opera 10.60 Build 3445
Google Chrome
Safari 5.33.16.0

Manually click a link <a href=http://www.examplesite.com/pageB.html> Link</a>

IE: shows
FF: shows
O: shows
C: shows
S: shows

Meta refresh <meta http-equiv=”refresh” content=0;url=”http://www.examplesite.com/pageB.html”>

IE: blank
FF: blank
O: shows
C: shows
S: shows

Slow meta refresh <meta http-equiv=”refresh” content=”5; URL=http://www.examplesite.com/pageB.html”>

IE: blank
FF: blank
O: shows
C: shows
S: shows

DMR – Double Meta Refresh
Page 1 – <meta http-equiv=”refresh” content=0;url=”http://www.examplesite.com/pageB.html”>
Page 2 – <meta http-equiv=”refresh” content=0;url=”http://www.examplesite.com/pageB.html”>

IE: blank
FF: blank
O: shows
C: shows
S: shows

PHP Header Replace
header(‘Location: http://www.examplesite.com/pageB.html);

IE: blank/shows*
FF: blank/shows*
O: blank/shows*
C: blank/shows*
S: blank/shows*

*Warning, only works if direct navigation to redirect page (page2.php) otherwise shows page that linked to redirect page (page1.php). Basically it takes on the exact referrer of the page referred to it. So if the page that referred to it is blank it’ll pass blank, if the page referred to it had a referrer it’ll preserve that referrer.

Javascript Location Replace
<head>
<script language=”javascript”><!–
location.replace(“http://www.examplesite.com/pageB.html”)
//–>
</script>
</head>

IE: blank
FF: shows
O: shows
C: shows
S: shows

Javascript Automatic Form Submit
<head>
</head>
<body>
<form name=”myform” action=”http://www.examplesite.com/pageB.html” method=”get”></form>
<script language=”javascript”><!–
document.myform.submit()
//–>
</script>

IE: shows
FF: shows
O: shows
C: shows
S: shows

Javascript Automatic Link Click
<body onload=”javascript:document.links[0].click();”>
<a href=”http://www.examplesite.com/pageB.html”></a>

IE: shows
FF: doesn’t work
O: doesn’t work
C: doesn’t work
S: doesn’t work

Javascript Window Location Redirect
<script type=”text/javascript”> window.location = “http://www.examplesite.com/pageB.html” </script>

IE: blank
FF: shows
O: shows
C: shows
S: shows

Site in iFrame
<iframe src =”http://www.examplesite.com/pageB.html” width=”100%” height=”100% frameborder=0 scrolling=”0” >
<p>Your browser does not support iframes.</p>
</iframe>

IE: shows
FF: shows
O: shows
C: shows
S: shows

Anonym.to
http://anonym.to/?http://www.examplesite.com/pageB.html

IE: blank
FF: blank
O: shows referrer
C: shows referrer
S: shows referrer

Referer.us
http://referer.us/http://www.examplesite.com/pageB.html

IE: blank
FF: blank
O: blank
C: blank
S: blank

Javascript Parent Location
<iframe src=”javascript:parent.location=’http://www.examplesite.com/pageB.html'” style=”visibility:hidden”></iframe>

IE: blank
FF: shows
O: blank
C: blank
S: blank

iFrame Parent Post
<script>
function go(){
window.frames[0].document.body.innerHTML='<form target=”_parent” action=”http://www.examplesite.com/pageB.html”></form>’;
window.frames[0].document.forms[0].submit()
}
</script>
<iframe onload=”window.setTimeout(‘go()’, 99)” src=”about:blank” style=”visibility:hidden”></iframe>

IE: blank
FF: blank
O: blank
C: blank
S: blank

If you like the post & want to get more then Subscribe our blog posts. Subscribe SunwareTech.net RSS Feed Facebook Twitter Email

Both comments and pings are currently closed.

19 Responses to “How to hide HTTP_REFERER value from landing page”

  1. A second blog!This is one in all the some blogs I’m able to return to regularly.

  2. Pacbr says:

    Fantastic recopilation work! It is very helpfull.
    Thanks!

  3. It was exceedingly exciting to study and take a look at your page, I failed to know anything else about this before. Regards!

  4. Fidel says:

    The info on this blog is handy.

  5. Great post however I was wondering if you could write a litte more on this topic? I’d be very grateful if you could elaborate a little bit further. Cheers!

  6. Aw, this was a really nice post. In idea I would like to put in writing like this additionally – taking time and actual effort to make a very good article… but what can I say… I procrastinate alot and by no means seem to get something done.

  7. Valuable info. Lucky me I found your site by chance, and I am stunned why this accident did not took place in advance! I bookmarked it.

  8. Its like you read my mind! You appear to know a lot approximately this, like you wrote the book in it or something. I think that you simply could do with a few % to drive the message house a little bit, but instead of that, this is excellent blog. A great read. I will certainly be back.

  9. Aidediavoke says:

    columbus ohio pharmacy http://exclusiverx.com/products/aciphex.htm Aidediavoke 1035212 pharmacy school online

  10. beat maker says:

    Great to be going to, it has been weeks a newlyweds of. Well yet another write-up which will do the job out just fine. I necessity a thing enjoy that something I am working on, and mine has a similar subject as yours. I am relieved that I found it, excellent give.

  11. […] How to hide HTTP_REFERER value from landing page | Sunware … […]

  12. you are really a good webmaster. The site loading pace is amazing. It sort of feels that you’re doing any distinctive trick. In addition, The contents are masterwork. you have done a fantastic task on this topic!

  13. I was very pleased to find this web-site.I wanted to thanks for your time for this wonderful read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you blog post.

  14. Ashly Rupel says:

    This is certainly many of these a fantastic contraption who you might be offering and also supply it again separate for the purpose of free of cost. I just really like experiencing sites who figure out typically the appeal from offering some superior quality power source for the purpose of totally free. It is typically the aged exactly what round will come all-around schedule .

  15. awSEOme says:

    Hi. I just needed to write a comment and inform you that I discovered this post entertaining and exciting. I am seeking forward to studying some extra from you.

  16. It is appropriate time to make a few plans for the future and it is time to be happy. I’ve read this post and if I may I wish to suggest you some fascinating issues or tips. Maybe you could write subsequent articles relating to this article. I wish to read even more things approximately it!

  17. John Caler says:

    Fantastic perform! This is exactly the variety of things that must be distribute approximately the online. Shame on the lookup engines for not showing this things around the prime!

  18. Jack Parson says:

    hi!,I like your writing very much! share we communicate more about your post on AOL? I need a specialist on this area to solve my problem. Maybe thats you! Looking forward to see you.

  19. Charly says:

    After a lot of days searching your solution is the best !

    Great site, great programmer.

    Thanks !

Copyright © Sunware Technologies - Your web partner