| is_block | R Documentation |
Cloudflare's firewall can refuse a client that does not look like a
browser outright, with a 403 and its own block page, while a real
browser is served.
is_block(status, headers, body = NULL)
status |
The HTTP status code. |
headers |
The response headers, as the raw header block (one string,
lines separated by |
body |
The response body, as a string. |
TRUE for that page: a 403 from server: cloudflare whose body
says "Sorry, you have been blocked".
is_block(403, "HTTP/2 403\r\nserver: cloudflare\r\n\r\n",
"<html><title>Attention Required! | Cloudflare</title>...")
is_block(403, "HTTP/2 403\r\nserver: nginx\r\n\r\n", "Forbidden")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.