how to ban all russian from my site

aiman.h.kallaf

Active member
i've been getting tons of visit from different .ru domains for long time
i did not give it much attention at the time but now they are spreading like insects
i tried banning Russian ips using the htacess but that didn't stop them , maybe for few days but now they are back

<Limit GET HEAD POST>
order deny,allow
deny from 213.188.190.0/24
deny from 90.43.99.0/24
deny from 90.43.94.0/24
deny from 90.43.92.0/23
deny from 90.43.88.0/22
deny from 90.43.87.0/24
deny from 90.43.68.0/24
deny from 90.43.67.0/24
deny from 90.43.60.0/24
deny from 90.43.54.0/24
deny from 90.43.52.0/23
deny from 90.43.100.0/24
deny from 90.43.116.0/24
deny from 213.16.28.0/24
deny from 213.16.2.0/24
deny from 194.117.120.96/32
deny from 193.253.120.0/23
deny from 193.253.112.0/21
deny from 193.253.108.0/23
deny from 193.253.104.0/22
deny from 193.253.96.0/21
deny from 95.138.0.0/18
deny from 90.43.124.0/24
deny from 90.43.51.0/24
deny from 90.43.36.0/24
deny from 90.43.32.0/22
deny from 80.12.213.0/25
deny from 80.12.212.0/24
deny from 80.8.130.0/24
deny from 65.110.36.16/30
deny from 65.110.36.12/30
deny from 65.110.36.10/31
deny from 46.36.199.140/32
deny from 46.36.199.136/30
deny from 46.36.199.132/30
deny from 46.36.199.131/32
deny from 80.12.240.0/23
deny from 81.248.251.0/24
deny from 90.43.24.0/21
deny from 90.43.23.0/24
deny from 90.43.4.0/24
deny from 90.43.3.0/24
deny from 90.31.50.0/24
deny from 90.31.48.0/23
deny from 90.31.32.0/20
deny from 90.31.18.0/24
deny from 90.31.16.0/23
deny from 90.31.0.0/20
deny from 41.213.128.0/17
allow from all
</Limit>
 
I may be mistaken but I think your order is incorrect. Since allow is the second match, all users will match those rules and be allowed access.

http://httpd.apache.org/docs/2.0/mod/mod_access.html

I'm thinking you have to do this:


<Limit GET HEAD POST>
order allow, deny
allow from all
deny from 213.188.190.0/24
deny from 90.43.99.0/24
deny from 90.43.94.0/24
deny from 90.43.92.0/23
deny from 90.43.88.0/22
deny from 90.43.87.0/24
deny from 90.43.68.0/24
deny from 90.43.67.0/24
deny from 90.43.60.0/24
deny from 90.43.54.0/24
deny from 90.43.52.0/23
deny from 90.43.100.0/24
deny from 90.43.116.0/24
deny from 213.16.28.0/24
deny from 213.16.2.0/24
deny from 194.117.120.96/32
deny from 193.253.120.0/23
deny from 193.253.112.0/21
deny from 193.253.108.0/23
deny from 193.253.104.0/22
deny from 193.253.96.0/21
deny from 95.138.0.0/18
deny from 90.43.124.0/24
deny from 90.43.51.0/24
deny from 90.43.36.0/24
deny from 90.43.32.0/22
deny from 80.12.213.0/25
deny from 80.12.212.0/24
deny from 80.8.130.0/24
deny from 65.110.36.16/30
deny from 65.110.36.12/30
deny from 65.110.36.10/31
deny from 46.36.199.140/32
deny from 46.36.199.136/30
deny from 46.36.199.132/30
deny from 46.36.199.131/32
deny from 80.12.240.0/23
deny from 81.248.251.0/24
deny from 90.43.24.0/21
deny from 90.43.23.0/24
deny from 90.43.4.0/24
deny from 90.43.3.0/24
deny from 90.31.50.0/24
deny from 90.31.48.0/23
deny from 90.31.32.0/20
deny from 90.31.18.0/24
deny from 90.31.16.0/23
deny from 90.31.0.0/20
deny from 41.213.128.0/17
< /Limit>
 
Use the free "Deny Country" add-on. It's a lot easier. I've noticed a few slipping by, but not enough to matter since I also use KeyCaptcha to block the bots. There's also a paid add-on to do the same that probably misses fewer.

If you're doing this to control spam, you're probably on the wrong tack. Have you upgraded to 1.2.x and enabled all the anti-spam features, especially StopForumSpam & Akismet? I am discontinuing usage of the country blocker I upgrade forums to 1.2.x.
 
Use the free "Deny Country" add-on. It's a lot easier. I've noticed a few slipping by, but not enough to matter since I also use KeyCaptcha to block the bots. There's also a paid add-on to do the same that probably misses fewer.

If you're doing this to control spam, you're probably on the wrong tack. Have you upgraded to 1.2.x and enabled all the anti-spam features, especially StopForumSpam & Akismet? I am discontinuing usage of the country blocker I upgrade forums to 1.2.x.

OP had already stated "the problem is that the forum is only 30% of my site , i have lot of static html pages , i need a solution that would work everywhere"

@aiman.h.kallaf if this is a VPS or dedi, you could install CSF firewall and just enter RU in country blocks. That would block any connection on any port originating from Russia.
 
OP had already stated "the problem is that the forum is only 30% of my site , i have lot of static html pages , i need a solution that would work everywhere"

@aiman.h.kallaf if this is a VPS or dedi, you could install CSF firewall and just enter RU in country blocks. That would block any connection on any port originating from Russia.

Akismet it the biggest part of it -- it keeps all the crud out of WP and now out of XenForo, too. That's probably what he should be looking at it.

If the Russians aren't targeting you directly, they're using anonymous proxies all over the world. It's better to focus on blocking the bad content than a few countries.
 
Top Bottom