mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-25 22:30:51 +02:00
New: Improve CF Detection
Co-Authored-By: Diego Heras <ngosang@hotmail.es>
This commit is contained in:
parent
599eeb4c61
commit
842df6913c
1 changed files with 5 additions and 1 deletions
|
|
@ -28,7 +28,11 @@ public static bool IsCloudflareProtected(HttpResponse response)
|
|||
if (response.StatusCode.Equals(HttpStatusCode.ServiceUnavailable) ||
|
||||
response.StatusCode.Equals(HttpStatusCode.Forbidden))
|
||||
{
|
||||
return true; // Defected CloudFlare and DDoS-GUARD
|
||||
var responseHtml = response.Content;
|
||||
if (responseHtml.Contains("<title>Just a moment...") || responseHtml.Contains("<title>DDOS-GUARD"))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// detect Custom CloudFlare for EbookParadijs, Film-Paleis, MuziekFabriek and Puur-Hollands
|
||||
|
|
|
|||
Loading…
Reference in a new issue