TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Controlling the ‘referer’ header

86 pointsby nmjenkinsalmost 9 years ago

8 comments

marco1almost 9 years ago
This article is about website owners. The best thing you can do as a user is enabling the &#x27;Referer&#x27; for same-origin requests only. That way, you keep almost all the advantages of the &#x27;Referer&#x27; but at the same time fix almost all the privacy issues.<p>In Firefox, you can do this by setting `network.http.referer.XOriginPolicy` to `1` in `about:config`. Or use a `user.js` file with other helpful privacy settings, e.g. <a href="https:&#x2F;&#x2F;github.com&#x2F;delight-im&#x2F;Secure-Firefox" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;delight-im&#x2F;Secure-Firefox</a>
评论 #11965210 未加载
评论 #11967843 未加载
评论 #11965420 未加载
评论 #11967433 未加载
itsnotlupusalmost 9 years ago
The URL refresh thing can be done without JavaScript by having a little server side entrypoint that redirects to a destination URL with the same header.<p>I believe it should be widely supported.
评论 #11964794 未加载
评论 #11964917 未加载
patcheudoralmost 9 years ago
By controlling the referer header you can do all sorts of cool things like tamper with authenticated Google search histories in a way which makes it look like the person actually searched for a particular term:<p><a href="http:&#x2F;&#x2F;thefutureisastephenkingnovel.com&#x2F;badforensics&#x2F;" rel="nofollow">http:&#x2F;&#x2F;thefutureisastephenkingnovel.com&#x2F;badforensics&#x2F;</a>
michaeloblakalmost 9 years ago
How is it possible that this header is misspelled? Is there any interesting story behind it?
评论 #11969201 未加载
djsumdogalmost 9 years ago
Google and DuckDuckGo do this with a redirect system, right?
cm3almost 9 years ago
Before loading the page I thought this might be about hiding the client&#x27;s ip (that connected to an SMTP server) in the mail headers. Is that possible at all?
chrismorganalmost 9 years ago
Correction: s&#x2F;&lt;meta type=&quot;referrer&quot;&gt;&#x2F;&lt;meta name=&quot;referrer&quot;&gt;&#x2F;g
评论 #11965032 未加载
MichaelGGalmost 9 years ago
What is the benefit to users of having folder names in the URL? Seems like it totally avoids the issue if a unique ID or encrypted name is used.
评论 #11965068 未加载
评论 #11964993 未加载