mirror of
https://github.com/public-apis/public-apis.git
synced 2025-06-18 10:41:49 +02:00
Remove whitespaces
This commit is contained in:
parent
8136aa9ed1
commit
8ac60e31aa
1 changed files with 2 additions and 2 deletions
|
@ -91,14 +91,14 @@ def get_host_from_link(link: str) -> str:
|
||||||
|
|
||||||
def has_cloudflare_protection(resp: Response) -> bool:
|
def has_cloudflare_protection(resp: Response) -> bool:
|
||||||
"""Checks if there is any cloudflare protection in the response.
|
"""Checks if there is any cloudflare protection in the response.
|
||||||
|
|
||||||
Cloudflare implements multiple network protections on a given link,
|
Cloudflare implements multiple network protections on a given link,
|
||||||
this script tries to detect if any of them exist in the response from request.
|
this script tries to detect if any of them exist in the response from request.
|
||||||
|
|
||||||
Common protections have the following HTTP code as a response:
|
Common protections have the following HTTP code as a response:
|
||||||
- 403: When host header is missing or incorrect (and more)
|
- 403: When host header is missing or incorrect (and more)
|
||||||
- 503: When DDOS protection exists
|
- 503: When DDOS protection exists
|
||||||
|
|
||||||
See more about it at:
|
See more about it at:
|
||||||
- https://support.cloudflare.com/hc/en-us/articles/115003014512-4xx-Client-Error
|
- https://support.cloudflare.com/hc/en-us/articles/115003014512-4xx-Client-Error
|
||||||
- https://support.cloudflare.com/hc/en-us/articles/115003011431-Troubleshooting-Cloudflare-5XX-errors
|
- https://support.cloudflare.com/hc/en-us/articles/115003011431-Troubleshooting-Cloudflare-5XX-errors
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue