Reputation: 19847
I'm using something like this
mysite.com/out.php?url=outurl.com
I'm just using a simple redirect, but I'm just wondering how I can hide the referrer.
Thanks!
edit: I ended up doing a double meta refresh
Upvotes: 2
Views: 3434
Reputation: 1
Yes, you can hide your referrer : Newer browsers now support this properly anyway, with a meta tag. You can add:
For that page which you want to hide referrer.
I think it will help :-)
Upvotes: -1
Reputation: 8748
If you're really serious about hiding the referrer from downsteam sites, you have options...
For example you could try the service
which offers rediction (i.e. all referrals appear to come from instead of you).
Depending on your goals, you could easily implement a similar service yourself, either at your own domain (e.g. "/generic-referer.html" if you don't want people seeing the deep-linked page from which a visitor is coming) or a new domain that you control.
Upvotes: 1
Reputation: 1039100
If by hide you mean to remove it from the address bar than you could use a POST request instead of GET or a custom HTTP header. As a third option you could use a GET request but encrypt the data. Also I suppose you are talking about some custom referrer and not the standard HTTP referrer which might be sent by the user agent.
Upvotes: 1
Reputation: 175575
The referrer is attached by the user's browser, not by your server, it's up to them to include it or not
Upvotes: 4