Detect Cloudflare Access Denied

This commit is contained in:
ngosang
2022-09-25 00:35:39 +02:00
parent 436831edb8
commit aa254eb830
2 changed files with 4 additions and 2 deletions

View File

@@ -6,7 +6,9 @@ import log from "../services/log";
* This class contains the logic to solve protections provided by CloudFlare
**/
const BAN_SELECTORS: string[] = [];
const BAN_SELECTORS: string[] = [
'div.main-wrapper div.header.section h1 span.code-label span' // CloudFlare
];
const CHALLENGE_SELECTORS: string[] = [
// todo: deprecate '#trk_jschal_js', '#cf-please-wait'
'#cf-challenge-running', '#trk_jschal_js', '#cf-please-wait', // CloudFlare