Steve Jabba Posted April 16, 2021 Share Posted April 16, 2021 I am getting hit by spam from China. How do I block an entire country? Link to comment Share on other sites More sharing options...
AlexWebsites Posted April 16, 2021 Share Posted April 16, 2021 Are you using cloudflare or other? That's the easiest way. I run all my sites through cloudflare these days. https://support.cloudflare.com/hc/en-us/articles/217074967-Configuring-IP-Access-Rules Link to comment Share on other sites More sharing options...
CoffeeCake Posted April 16, 2021 Share Posted April 16, 2021 (edited) Seconding this idea. We leverage Cloudflare page rules for this. You might consider blocking registrations from a particular country, or redirecting registrations from another country to another process that helps weed out the spam. Simply block or redirect /register and/or /login from your points of origin of interest. You may find that the problematic traffic is only from certain ASNs within a specific country and can be more selective with your rules than the entire country. Edited April 16, 2021 by CoffeeCake Link to comment Share on other sites More sharing options...
CoffeeCake Posted April 16, 2021 Share Posted April 16, 2021 Also, if you prefer a Marketplace solution, this claims to do what you're asking: We have not used it, yet may be an option for you to consider. We prefer to address problematic traffic before it its the web server by having Cloudflare intercede. SammyS 1 Link to comment Share on other sites More sharing options...
Steve Jabba Posted April 17, 2021 Author Share Posted April 17, 2021 14 hours ago, AlexWebsites said: Are you using cloudflare or other? That's the easiest way. I run all my sites through cloudflare these days. https://support.cloudflare.com/hc/en-us/articles/217074967-Configuring-IP-Access-Rules I am using the cloud based version of hosting - so no idea how invision sets this up. If I self hosted, I would indeed use cloudflare. I am not happy to pay extra. This should be included as standard. I do not want chinese traffic, period. It's ALL spam.. Link to comment Share on other sites More sharing options...
Recommended Posts