Jump to content

Help I need to block a whole country IP addresses from my website.


Go to solution Solved by Makoto,

Recommended Posts

Posted

Hello, I now decided I want to block a whole country from viewing my website.

Has anyone ever done this?

Is there a plugin that can do this?

How do I find all the IP address for a given country?

Thanks 

  • Solution
Posted (edited)

Cloudflare, for example, makes this very easy to do.

Just go Security, then WAF, and from there you can set up a rule to block an entire country code from accessing your server.

image.thumb.png.9215e3b312a467c2160c16624789d188.png

 

Just be sure you've carefully considered the implications, and you are certain you really want to do this.

(You can also block TOR exit relays via the country code firewall rule)

Edited by Makoto
Posted

As mentioned, you can only really do this at a server level. There is nothing within the software itself that would allow you to do this. If you are unsure, you would need to contact your hosting company for assistance.

You Could have course block IPs using the ban settings, but that will not stop them getting to your server in the first place. It will simply stop them registering

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...