Skip to content

Instantly share code, notes, and snippets.

@stintel
Created August 29, 2017 09:25
Show Gist options
  • Save stintel/82d5af1ef3594b93e859f477d35685cb to your computer and use it in GitHub Desktop.
Save stintel/82d5af1ef3594b93e859f477d35685cb to your computer and use it in GitHub Desktop.
CloudFlare blocks 'Python-urllib/2.7' UserAgent :/
stijn@taz ~/projects/ansible $ curl --head --user-agent 'CloudFlareYU403ME?!?!' https://download.invoiceninja.com/ninja-v3.5.0.zip
HTTP/1.1 200 OK
Date: Tue, 29 Aug 2017 09:24:25 GMT
Content-Type: application/zip
Content-Length: 107763343
Connection: keep-alive
Set-Cookie: __cfduid=d4ffebdc003e118cd787a4e50eb8a02121503998664; expires=Wed, 29-Aug-18 09:24:24 GMT; path=/; domain=.invoiceninja.com; HttpOnly
Last-Modified: Mon, 17 Jul 2017 17:33:42 GMT
ETag: "596cf4f6-66c568f"
Accept-Ranges: bytes
Server: cloudflare-nginx
CF-RAY: 395e75055b83403e-SOF
stijn@taz ~/projects/ansible $ curl --head --user-agent 'Python-urllib/2.7' https://download.invoiceninja.com/ninja-v3.5.0.zip
HTTP/1.1 403 Forbidden
Date: Tue, 29 Aug 2017 09:24:35 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Set-Cookie: __cfduid=d5ad4574dac92c3b7dd144d8649f314c41503998675; expires=Wed, 29-Aug-18 09:24:35 GMT; path=/; domain=.invoiceninja.com; HttpOnly
Cache-Control: max-age=10
Expires: Tue, 29 Aug 2017 09:24:45 GMT
X-Frame-Options: SAMEORIGIN
Server: cloudflare-nginx
CF-RAY: 395e75479930405c-SOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment