File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1- using System . Collections . Generic ;
1+ using System ;
2+ using System . Collections . Generic ;
23using System . Linq ;
34using System . Net ;
45using System . Net . Http ;
@@ -40,7 +41,7 @@ private static bool IsCloudflareProtected(HttpResponseMessage response)
4041 responseHtml . Contains ( "<title>Access denied</title>" ) || // Cloudflare Blocked
4142 responseHtml . Contains ( "<title>Attention Required! | Cloudflare</title>" ) || // Cloudflare Blocked
4243 responseHtml . Trim ( ) . Equals ( "error code: 1020" ) || // Cloudflare Blocked
43- responseHtml . Contains ( "<title>DDOS-GUARD</title>" ) ) // DDOS-GUARD
44+ responseHtml . IndexOf ( "<title>DDOS-GUARD</title>" , StringComparison . OrdinalIgnoreCase ) > - 1 ) // DDOS-GUARD
4445 return true ;
4546 }
4647
@@ -54,4 +55,4 @@ private static bool IsCloudflareProtected(HttpResponseMessage response)
5455 }
5556
5657 }
57- }
58+ }
You can’t perform that action at this time.
0 commit comments