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

View File

@ -14,7 +14,7 @@ const googleUrl = "https://www.google.com";
const postUrl = "https://ptsv2.com/t/qv4j3-1634496523";
const cfUrl = "https://nowsecure.nl";
const cfCaptchaUrl = "https://idope.se"
const cfBlockedUrl = "https://www.torrentmafya.org/table.php"
const cfBlockedUrl = "https://avistaz.to/api/v1/jackett/torrents?in=1&type=0&search="
const ddgUrl = "https://anidex.info/";
const ccfUrl = "https://www.muziekfabriek.org";