Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Set User-Agent for #4072

anonymous-piwik-user opened this Issue · 2 comments

2 participants

Anonymous Piwik user Matthieu Aubry
Anonymous Piwik user

I encountered problems running as the script's requests were rejected with a 403 Forbidden error. Of course this was a configuration issue on my part: specifically, Cloudflare was blocking requests with missing User-Agent headers. It might also have been Apache, Nginx, or some other software. I would suggest that since there are so many pieces of software that may block requests, and since well-behaved software should provide a User-Agent, that should provide the headers. I'm attaching a trivial patch.
Keywords: import_logs, 403, forbidden

Anonymous Piwik user

Attachment: Patch to send User-Agent with requests

Matthieu Aubry

In c64939a: Fixes #4072 thanks for the patch

Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Matthieu Aubry mattab Fixes #4072 thanks for the patch c64939a
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.