mirror of
https://github.com/FlareSolverr/FlareSolverr.git
synced 2025-06-08 20:45:27 +00:00
Bypass new Cloudflare protection
This commit is contained in:
parent
6576e1908d
commit
a24b665bd1
2
package-lock.json
generated
2
package-lock.json
generated
@ -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",
|
||||||
|
@ -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"]'];
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user