D
D
dfhkjhg2020-06-13 10:57:43
JavaScript
dfhkjhg, 2020-06-13 10:57:43

Why does CloudflareError: 1020, Access Denied (Custom Firewall Rules) occur?

The site is protected by cloudflare, it used to be parsed normally through cloudscraper, and today the parser started to give an error

CloudflareError: 1020, Access Denied (Custom Firewall Rules)
at validateResponse (C:\Users\kek\Desktop\esports\node_modules\cloudscraper\index.js:281: 11)
at onCloudflareResponse (C:\Users\kek\Desktop\esports\node_modules\cloudscraper\index.js:222:5)
at onRequestResponse (C:\Users\kek\Desktop\esports\node_modules\cloudscraper\index.js: 205:5)
at Request. (C:\Users\kek\Desktop\esports\node_modules\cloudscraper\index.js:149:7)
at Object.onceWrapper (events.js:300:26)
at Request.emit (events.js:210:5)
at Request. (C:\Users\kek\Desktop\esports\node_modules\request\request.js:1154:10)
at Request.emit(events.js:210:5)
at IncomingMessage. (C:\Users\kek\Desktop\esports\node_modules\request\request.js:1076:12)
at Object.onceWrapper (events.js:299:28)
at IncomingMessage.emit (events.js:215:7)
at endReadableNT (_stream_readable.js:1184:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
name: 'CloudflareError',
message: '1020, Access Denied (Custom Firewall Rules)'
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
desperationbtw, 2020-08-12
@desperationbtw

Here is a fork with a fix

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question