mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-05-08 12:43:19 +02:00
More CF cases from FlareSolverrSharp
This commit is contained in:
parent
fc3b23394a
commit
bad6c301f8
1 changed files with 5 additions and 1 deletions
|
|
@ -29,7 +29,11 @@ public static bool IsCloudflareProtected(HttpResponse response)
|
|||
response.StatusCode.Equals(HttpStatusCode.Forbidden))
|
||||
{
|
||||
var responseHtml = response.Content;
|
||||
if (responseHtml.Contains("<title>Just a moment...") || responseHtml.Contains("<title>DDOS-GUARD"))
|
||||
if (responseHtml.Contains("<title>Just a moment...</title>") ||
|
||||
responseHtml.Contains("<title>Access denied</title>") ||
|
||||
responseHtml.Contains("<title>Attention Required! | Cloudflare</title>") ||
|
||||
responseHtml.Trim().Equals("error code: 1020") ||
|
||||
responseHtml.Contains("<title>DDOS-GUARD</title>"))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue