"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:
- Error 1007: Access Denied
- Error 1008: Access Denied
How to Bypass Cloudflare When Web Scraping in 2025
Cloudflare offers one of the most popular anti scraping service, so in this article we'll take a look how it works and how to bypass it.