Skip to content

Commit f930242

Browse files
committed
DEF-33385: update documentation
Signed-off-by: Miroslav Kovac <mkovac@cloudlinux.com>
1 parent 1ac98f4 commit f930242

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

docs/features/README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -494,11 +494,7 @@ Please note that the WebShield Anti-Bot Challenge is not compatible with aggress
494494
::: tip Note: Handling Non-Text Requests for Greylisted IPs
495495
When a source IP address is added to the Greylist, WebShield typically presents an HTML-based Anti-Bot Challenge page (splashscreen) to verify the user. However, displaying this HTML page is not appropriate for requests explicitly asking for non-text content types.
496496

497-
WebShield examines the `Accept` HTTP header sent in the request. If an IP is greylisted and the request includes an `Accept` header that:
498-
1. Is not empty, **and**
499-
2. Does **not** start with the prefix `text/` (e.g., `text/html`, `text/plain`)
500-
501-
Then, instead of showing the challenge page, WebShield will return an **HTTP 415 Unsupported Media Type** error. This includes requests sending `Accept: */*`, as this is treated as requesting a potentially non-text resource in this context.
497+
For requests from greylisted IPs, if the `Accept` header is present and does not start with `text/` (this includes heaaders like `Accept: application/json` or `Accept: */*`), WebShield returns an **HTTP 415 Unsupported Media Type** error instead of the HTML challenge page, as the challenge is unsuitable for non-text responses.
502498

503499
**Workarounds:**
504500
If legitimate traffic is being blocked with a 415 error due to this behavior, consider the following:

0 commit comments

Comments
 (0)