Skip to content
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

Redact search params and fragment from referrer #3908

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Zwyx
Copy link
Sponsor

@Zwyx Zwyx commented Mar 17, 2024

Changes

Redact search params and fragment from referrer

In the referrer URL, the search parameters (following the ?) and the fragment (following the #) might contain personal/sensitive information.

They are already dropped by Plausible server, but I think we could even make them never leave the user's device.

It could be quite frightening for a user observing network requests in their browser's dev tools, to see that sensitive information is sent to Plausible, a third party service they might have never heard of.

Observing that the search params and fragment are not being sent would be reassuring.

(Even with strict-origin-when-cross-origin, search parameters and fragment will be present in the referrer if, for instance, a user middle-clicks a link in the page.)

Note: apologises for dropping a PR here before asking in an issue — the change is so trivial that I preferred to make it directly. Feel free to simply reject it.

Tests

  • This PR does not require tests

Changelog

  • This PR does not make a user-facing change

Documentation

  • This change does not need a documentation update

Dark mode

  • This PR does not change the UI

In the referrer URL, the search parameters (following the `?`) and the fragment (following the `#`) might contain personal/sensitive information.

They are already dropped by Plausible server, but I think we could even make them never leave the user's device.

It could be quite frightening for a user observing network requests in their browser's dev tools, to see that sensitive information is sent to Plausible, a third party service they might have never heard of.

Observing that the search params and fragment are not being sent would be reassuring.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant