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?
to your account
Reported in forum
Proposal from Anthon:
We just need to exclude visits with the X-Moz: prefetch (Mozilla), X-Purpose: preview (Safari, Opera), and X-Purpose: instant (Chrome) ```
$_SERVER["HTTP_X_PURPOSE"] == "preview" || $_SERVER['HTTP_X_MOZ'] == "prefetech")
The text was updated successfully, but these errors were encountered:
I would have added a UA check as an additional guard against header spoofing.
Also, what about "X-Purpose: instant"?
p.s. is the commit hook not working?
Sorry, something went wrong.
Did you see any doc on X-purpose: instant?
Header spoofing: that's fine with me if users spoof this header to exclude themselves from tracking? :)
(In ) Refs #3285
For Chrome, it was "preview" at one point, and then later changed to "instant". Oh, and at one point, it seems there was also a bug (now fixed) where Chrome sent: "X-Purpose: : instant" (extra colon and space).
No branches or pull requests