Block certain countries completely

We receive a lot of spam from some countries. Therefore I wanted to block them for our server via htaccess.

However, this seems to have no effect, so I have to block the countries via cloudflare. Is there a tip on how to proceed?

Thanks!

The firewall settings on Cloudflare will cover that.

Either create a firewall rule or simply an IP access rule. For details, use the search as that topic comes up regularly.

Also make sure requests only go via Cloudflare and nothing connects directly.

Only thing, for blocking you will need a firewall rule as IP access rules support that only on Enterprise plans.

Thank you!

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