-
Notifications
You must be signed in to change notification settings - Fork 60.2k
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
curl on docs.github.com results in HTTP 403 with "The request is blocked" #17358
Comments
Thanks for opening this issue. A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines. |
@mikouaj |
Same issue here. It seems to depend on your ip (I get different results on & off vpn) |
@mikouaj Thanks so much for opening an issue to let us know what you're seeing and I'm sorry you're seeing issues with the docs site! We're tracking this internally, so I'm going to close this now 💛 |
Not sure why this issue is closed until it is fixed (even tracked internally), I am also experiencing the same for docs.github.com
but for github.com it is working
|
This pr try to solve following issue by adding docs.github.com to ignore list. ``` FILE: ./source/topics/proc_troubleshooting-unknown-issues.adoc [✓] https://github.com/code-ready/crc/issues [✓] https://github.com/code-ready/crc/issues/new [✖] https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/attaching-files 3 links checked. ERROR: 1 dead links found! [✖] https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/attaching-files → Status: 403 make: *** [Makefile:138: docs_check_links] Error 123 ``` ``` $ curl -I https://docs.github.com HTTP/2 403 x-azure-ref: 0fzhqYgAAAAA4TNP/TuUcR6h8UmZoI8OxRFhCMzBFREdFMDIxNQA1OTZkNzhhMi1jYTVmLTQ3OWQtYmNkYy0wODM1ODMzMTc0YjI= accept-ranges: bytes date: Thu, 28 Apr 2022 06:47:27 GMT via: 1.1 varnish x-served-by: cache-maa10249-MAA x-cache: MISS x-cache-hits: 0 x-timer: S1651128448.577384,VS0,VE51 strict-transport-security: max-age=31557600 ``` - github/docs#17358
|
For some reason, help.github.com will only serve compressed content, and will reply with a 403 error without any "Accept-encoding" headers. This is tracked in github/docs#17358 For this fix to work, quay.io/crcont/docs-builder:latest must be rebuilt and pushed to quay. This can be rebuilt and tested locally with: $ (cd images/docs-builder && podman build -t quay.io/crcont/docs-builder:latest .) $ make docs_check_links
For some reason, help.github.com will only serve compressed content, and will reply with a 403 error without any "Accept-encoding" headers. This causes 'make docs_check_links' to report help.github.com links as being dead. This is tracked in github/docs#17358 For this fix to work, quay.io/crcont/docs-builder:latest must be rebuilt and pushed to quay. This can be rebuilt and tested locally with: $ (cd images/docs-builder && podman build -t quay.io/crcont/docs-builder:latest .) $ make docs_check_links
For some reason, help.github.com will only serve compressed content, and will reply with a 403 error without any "Accept-encoding" headers. This causes 'make docs_check_links' to report help.github.com links as being dead. This is tracked in github/docs#17358 For this fix to work, quay.io/crcont/docs-builder:latest must be rebuilt and pushed to quay. This can be rebuilt and tested locally with: $ (cd images/docs-builder && podman build -t quay.io/crcont/docs-builder:latest .) $ make docs_check_links
same issue, when checking links with https://github.com/gaurav-nelson/asciidoc-link-check |
There seems to be bot protection on docs.github.com which can be bypassed by requesting compressed content - github/docs#17358 (comment)
* Replace golang-ci install path Noticed builds failing to download this script. Docs are updated with a new install path direct from GitHub - https://golangci-lint.run/usage/install/#other-ci * Workaround bot protection on docs.github.com There seems to be bot protection on docs.github.com which can be bypassed by requesting compressed content - github/docs#17358 (comment)
Without the "Accept-Encoding" HTTP header GitHub blocks the requests made to "help.github.com". - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - See also: github/docs#17358
Without the "Accept-Encoding" HTTP header GitHub blocks the requests made to "help.github.com". - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - See also: * github/docs#17358 * tcort/markdown-link-check#201
Without the "Accept-Encoding" HTTP header GitHub blocks the requests made to "help.github.com". - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - See also: * github/docs#17358 * tcort/markdown-link-check#201
This prevents 403 errors on help.github.com (github/docs#17358).
By passing in the correct config file for the link checker code github/docs#17358
@janiceilene and colleagues, were you able to find the cause of this? I'm getting the same issue using https://github.com/gaurav-nelson/github-action-markdown-link-check (gaurav-nelson/github-action-markdown-link-check#143), but am not convinced that this isn't an issue with the link checker action. Would be good to know of any leads. Thanks! |
@sdruskat, this seems known for |
* Replace golang-ci install path Noticed builds failing to download this script. Docs are updated with a new install path direct from GitHub - https://golangci-lint.run/usage/install/#other-ci * Workaround bot protection on docs.github.com There seems to be bot protection on docs.github.com which can be bypassed by requesting compressed content - github/docs#17358 (comment)
…ory and rename it to scripts ✅ Send "Accept-Encoding" HTTP header when checking "help.github.com" Without the "Accept-Encoding" HTTP header GitHub blocks the requests made to "help.github.com". - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - See also: * github/docs#17358 * tcort/markdown-link-check#201 See alrra@a3433f8 See alrra@4dc75ad See alrra@4ab15e9
…ory and rename it to scripts ✅ Send "Accept-Encoding" HTTP header when checking "help.github.com" Without the "Accept-Encoding" HTTP header GitHub blocks the requests made to "help.github.com". - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - See also: * github/docs#17358 * tcort/markdown-link-check#201 See alrra@a3433f8 See alrra@4dc75ad See alrra@4ab15e9
Code of Conduct
What article on docs.github.com is affected?
I assume that all pages from
docs.github.com
are affected, tested on:Check Gist with verbose output of curl.
What changes are you suggesting?
The content on docs.github.com should be widely accessible.
Many
CONTRIBUTING.md
files contain link to the belowdocs.github.com
page:We use Markdown links checker that follows the links in markdown files to verify them. It fails on 'docs.github.com' links due to HTTP 403 response code.
Additional information
No response
The text was updated successfully, but these errors were encountered: