Mobile app version of vmapp.org
Login or Join
Frith620

: Is it possible to block traffic originating from a specific country? My personal website is currently getting a lot of spam comments at the moment, and most of them originate from Russia (I've

@Frith620

Posted in: #CountrySpecific #SpamPrevention #Wordpress

My personal website is currently getting a lot of spam comments at the moment, and most of them originate from Russia (I've used Google Analytics to identify the traffic, and a lot of the links link to Russian sites). As it's a pain to keep deleting this comments, I would like to ban people from there commenting or visiting the website. Is this possible?

Also, the website is using WordPress.

Many thanks!

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Frith620

2 Comments

Sorted by latest first Latest Oldest Best

 

@XinRu657

Banning Russia is a very short-term solution: if/when your spammers realize they're blocked they'll just use different servers - it's fairly trivial to proxy requests... and you'll still be vulnerable to spam from the millions of other IP's you haven't blocked yet.

If you are not already doing so, check out Akismet and WP-reCAPTCHA - the combination of spam filtering and a CAPTCHA challenge should slow spam down to a trickle.

10% popularity Vote Up Vote Down


 

@Angela700

The only practical way to do this would be to get a list of IP address blocks assigned to the country in question and then configure your site to ignore all traffic originating from those IP addresses.

There are a number of ways the block list could be implemented (in your firewall, in Apache, in your site software), but I have no idea what (if any) IP blocking solutions WordPress supports.

I've never used them, but Google turned up www.countryipblocks.net/ when I googled for a list of russian IP addresses...

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme