开发者

Hide Referer (PHP, or HTML, or JS Doesn't matter)

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


The referrer is attached by the user's browser, not by your server, it's up to them to include it or not


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.


If you're really serious about hiding the referrer from downsteam sites, you have options...

For example you could try the service

http://referer.us/

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.


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 :-)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜