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

Ignore Web browsers "Preview" http request #3285

Closed
mattab opened this issue Jul 29, 2012 · 4 comments
Closed

Ignore Web browsers "Preview" http request #3285

mattab opened this issue Jul 29, 2012 · 4 comments
Labels
Bug
Milestone

Comments

@mattab
Copy link
Member

@mattab mattab commented Jul 29, 2012

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

something like

$_SERVER["HTTP_X_PURPOSE"] == "preview" || $_SERVER['HTTP_X_MOZ'] == "prefetech")





@robocoder
Copy link
Contributor

@robocoder robocoder commented Aug 1, 2012

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?

@mattab
Copy link
Member Author

@mattab mattab commented Aug 2, 2012

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

@mattab
Copy link
Member Author

@mattab mattab commented Aug 2, 2012

(In [6638]) Refs #3285

@robocoder
Copy link
Contributor

@robocoder robocoder commented Aug 2, 2012

https://developers.google.com/search?q=%22x-purpose%22

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

@mattab mattab added this to the 1.8.3 - Piwik 1.8.3 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug
Projects
None yet
Development

No branches or pull requests

2 participants