-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove dereferer in browsers that support Referrer-Policy #712
Labels
Comments
Sounds like a good idea but I have no idea how to set that header when just
providing a link for you to click.
…On Tue, 15 Jun 2021, 19:26 Daniel Lo Nigro, ***@***.***> wrote:
- What do you want to happen?
In modern browsers, you can send a Referrer-Policy: no-referrer header
and it'll block the referrer for all outbound links. This avoids the need
to redirect through dereferer.org.
See
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy
which has details on the possible values for the header, and browser
support. You could do browser detection and use Referrer-Policy for newer
browsers, falling back to dereferer for older browsers.
- If not clear, why do you want it?
Speeds up connecting to other sites (don't have to wait a few seconds for
dereferer to redirect)
- Do you think it's something only you need or something that might be
popular?
People like stuff being faster 😄
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#712>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADNUA6OI6AIQS4NDQNLUPXLTS6EMTANCNFSM46XWYANA>
.
|
@theotherp The header applies to all links on the page. You'd just have to set it when serving NZBHydra pages. There's a few options:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What do you want to happen?
In modern browsers, you can send a
Referrer-Policy: no-referrer
header and it'll block the referrer for all outbound links. This avoids the need to redirect throughdereferer.org
. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy which has details on the possible values for the header, and browser support. You could do browser detection and useReferrer-Policy
for newer browsers, falling back todereferer
for older browsers.If not clear, why do you want it?
Speeds up connecting to other sites (don't have to wait a few seconds for dereferer to redirect)
Do you think it's something only you need or something that might be popular?
People like stuff being faster 😄
The text was updated successfully, but these errors were encountered: