I am making a site and when people post links now, it goes directly to that site, I want to make a script so that whenever a link is posted it have to go through a refferer.php script. Basically I want the Refferer Info stripped so the site they are linking to can't tell the traffic is coming from us. I have seen sites use this before, but can't find some sample code to even get me started. Can someone post a script, or example, or at least point me in the right direction?
I've seen sites like anonym.to but I would like the script to be on my site. So if anyone has a script similar to those sites, I would be most appreciative.
The major ones seem to do so. Actually I was quite surprised to not see them doing it as I was expecting the referrer to be sent also with a meta refresh, however for some reason they do not do it.
Assuming you have a bunch of links that you want to do this with, on a variety of pages. The number could add up quickly. You don`t want to be creating a seperate redirect page for each link. So, the links should be something like this http://www.blah.ca/forward.php?link_id=1
The forwarding script (Named forward.php of course) Will contain a seperate line for each possible link value.
So in forward we would have the following::
<?
if($_GET['link_id'] == 1){ $redirect_to = "http:///www.flying-cows.ca"; }
//repeat this line for each appropriate link changing as necessary
?>
is there a 100% solution ? how do I allow access to a site only for certain browsers, that would be more secure if you don't want to send out ANY referrer
__________________ RLTT.com is for SALE Realtime Technologies is the way to go !
if you put it in an img tag and post an image inside a forum message it works. it sends image file owners website as a referrer. so target site thinks request is coming from itself
or you can try this:
Code:
http://www.fakeref.com/fakeref.php
( write full url of the file address, not only a website address )
I'd guess that just uses something like cURL to mask the HTTP_REFERER.
If I guessed right then the page you go to:
If it had relative images, they would not load,
And if they had absolute images then it would send the HTTP_REFERER whilst getting the image, making the script unneeded in the first place.
I tried it whilst using the Live HTTP Headers add on, and it clearly adds "Referer: http://www.fakeref.com/fakeref.php" to every request, which shows the site it comes from...