Log in to your Cloudflare account and click Dashboards at the top of the page. At the top right corner of your Dashboards page, click Threat Control. In the Add Custom Rule box, type an IP address, IP range, or country. Click Block +.
- Does Cloudflare block countries?
- Why am I getting blocked by Cloudflare?
- How do I block all IP addresses from a country?
- How do I block IP range on Cloudflare?
Does Cloudflare block countries?
To protect your site and apply basic security, you need to rely on Web Application Firewall (WAF) providers like Cloudflare. Though Cloudflare offers country blocking only for premium enterprise level users, it is also possible to block a country in Cloudflare free account.
Why am I getting blocked by Cloudflare?
The common cause for this error is: The owner of a website restricts access based on malicious activity detected on the visitor's computer or network (IP address). A virus or malware infection on the visitor's computer is the most likely cause.
How do I block all IP addresses from a country?
Step 1: Generate the Country's IP Addresses
Head to Country IP Blocks homepage. Select the countries you want to block or allow. On the Select Format section, choose Apache . htaccess Deny or Apache .
How do I block IP range on Cloudflare?
In the Cloudflare dashboard, navigate to Firewall > Tools. Cloudflare tools dashboard. To create a new IP access rule, add an IP address, select the “Block” action, select “This Website” (or “All Websites in Account” if you want the rule to apply across all your Cloudflare domains), and click “Add”.