Bypass new Cloudflare protection

This commit is contained in:
ngosang 2021-12-11 18:27:44 +01:00
parent 6576e1908d
commit a24b665bd1
3 changed files with 5 additions and 4 deletions

2
package-lock.json generated
View File

@ -6,7 +6,7 @@
"packages": { "packages": {
"": { "": {
"name": "flaresolverr", "name": "flaresolverr",
"version": "2.0.0", "version": "2.0.2",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"await-timeout": "^1.1.1", "await-timeout": "^1.1.1",

View File

@ -6,7 +6,7 @@ import log from "../services/log";
* This class contains the logic to solve protections provided by CloudFlare * This class contains the logic to solve protections provided by CloudFlare
**/ **/
const BAN_SELECTORS = ['span[data-translate="error"]']; 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'];
const CAPTCHA_SELECTORS = ['input[name="cf_captcha_kind"]']; const CAPTCHA_SELECTORS = ['input[name="cf_captcha_kind"]'];

View File

@ -46,8 +46,9 @@ function buildExtraPrefsFirefox(proxy: Proxy): object {
"startup.homepage_welcome_url": "about:blank", "startup.homepage_welcome_url": "about:blank",
"startup.homepage_welcome_url.additional": "", "startup.homepage_welcome_url.additional": "",
// Disable images to speed up load // Detected !
"permissions.default.image": 2, // // Disable images to speed up load
// "permissions.default.image": 2,
// Limit content processes to 1 // Limit content processes to 1
"dom.ipc.processCount": 1 "dom.ipc.processCount": 1