"Error 1006: Access Denied" (also 1007, 1008 and 1106) can be encountered when web scraping websites covered Cloudflare anti-bot service. This means Cloudflare has blocked the scraper's IP address as it thinks it's a bot.
Cloudflare WAF is using a variety of technologies to detect web scrapers, like TLS, javascript and IP fingerprinting.
To bypass this Cloudflare error the scraper needs to be fortified against these detection technologies by using better scraping practices and libraries. For more on this see: How Cloudflare is identifying web scrapers?
Note: this error also appears as and is identical to other Cloudlfare errors:
Learn how to prevent TLS fingerprinting by impersonating normal web browser configurations. We'll start by explaining what the Curl Impersonate is, how it works, how to install and use it. Finally, we'll explore using it with Python to avoid web scraping blocking.
In this article, we'll explore the FlareSolverr tool and how to use it to get around Cloudflare while scraping. We'll start by explaining what FlareSolverr is, how it works, how to install and use it. Let's get started!