Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Ignore Web browsers "Preview" http request #3285

Closed
mattab opened this Issue · 4 comments

2 participants

Matthieu Aubry Anthon Pang
Matthieu Aubry
Owner

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





Anthon Pang
Collaborator

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?

Matthieu Aubry
Owner

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

Matthieu Aubry
Owner

(In [6638]) Refs #3285

Anthon Pang
Collaborator

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

Matthieu Aubry mattab added this to the 1.8.3 - Piwik 1.8.3 milestone
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.