From bad6c301f8800fc47cde7870bcf73c6e694f02d4 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 8 Jan 2023 13:59:17 -0600 Subject: [PATCH] More CF cases from FlareSolverrSharp --- .../Http/CloudFlare/CloudFlareDetectionService.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Http/CloudFlare/CloudFlareDetectionService.cs b/src/NzbDrone.Core/Http/CloudFlare/CloudFlareDetectionService.cs index 8aff4b95e..5acf1c8e6 100644 --- a/src/NzbDrone.Core/Http/CloudFlare/CloudFlareDetectionService.cs +++ b/src/NzbDrone.Core/Http/CloudFlare/CloudFlareDetectionService.cs @@ -29,7 +29,11 @@ namespace NzbDrone.Core.Http.CloudFlare response.StatusCode.Equals(HttpStatusCode.Forbidden)) { var responseHtml = response.Content; - if (responseHtml.Contains("Just a moment...") || responseHtml.Contains("<title>DDOS-GUARD")) + if (responseHtml.Contains("<title>Just a moment...") || + responseHtml.Contains("Access denied") || + responseHtml.Contains("Attention Required! | Cloudflare") || + responseHtml.Trim().Equals("error code: 1020") || + responseHtml.Contains("DDOS-GUARD")) { return true; }