mirror of
https://github.com/FlareSolverr/FlareSolverr.git
synced 2026-04-28 02:45:34 +02:00
Add support for DDoS-GUARD challenge
This commit is contained in:
@@ -7,7 +7,10 @@ import log from "../services/log";
|
||||
**/
|
||||
|
||||
const BAN_SELECTORS = ['.text-gray-600'];
|
||||
const CHALLENGE_SELECTORS = ['#trk_jschal_js', '.ray_id', '.attack-box', '#cf-please-wait'];
|
||||
const CHALLENGE_SELECTORS = [
|
||||
'#trk_jschal_js', '.ray_id', '.attack-box', '#cf-please-wait', // CloudFlare
|
||||
'#link-ddg' // DDoS-GUARD
|
||||
];
|
||||
const CAPTCHA_SELECTORS = ['input[name="cf_captcha_kind"]'];
|
||||
|
||||
export default async function resolveChallenge(url: string, page: Page, response: Response): Promise<Response> {
|
||||
|
||||
Reference in New Issue
Block a user