Allowing only some countries to access my domain

Enter #CommunityTip & the error message you’re seeing to find Community Tips with advice and insight.

Please search for any existing topics relating to your subject before posting.


I want to allow only Turkey, Germany and France countries to access my domain. Can I do it using my free plan?


Yes, you can. Go to Cloudflare Dashboard > Firewall > Firewall Rules and create a firewall rule:

The action can be Block, Challenge (captcha) or JS Challenge (JavaScript challenge). The “known bot” part is to create an exception to known crawlers, such as Googlebot.

1 Like

This topic was automatically closed after 31 days. New replies are no longer allowed.