1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to ban all russian from my site

Discussion in 'Off Topic' started by aiman.h.kallaf, Sep 8, 2013.

  1. aiman.h.kallaf

    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>
     
  2. Dodgeboard

    Dodgeboard Well-Known Member

    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>
     
    aiman.h.kallaf likes this.
  3. Tracy Perry

    Tracy Perry Well-Known Member

    Have you checked out @tenants StopCountrySpam? Does a lot more than just block countries also.
     
    aiman.h.kallaf likes this.
  4. aiman.h.kallaf

    aiman.h.kallaf Active Member

    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
     
  5. Tracy Perry

    Tracy Perry Well-Known Member

    Look into ZB Block. http://www.spambotsecurity.com/zbblock.php
    I had it directly integrated into xenForo and I believe their are instructions for other packages (Joomla, Drupal, WordPress, phpBB, IPB, vB, SMF, FluxBB, GeekLog and others).
     
    aiman.h.kallaf likes this.
  6. OSS 117

    OSS 117 Well-Known Member

  7. MikeMpls

    MikeMpls Well-Known Member

    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.
     
  8. The Forum Heroes

    The Forum Heroes Well-Known Member

    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.
     
    Moshe1010 and aiman.h.kallaf like this.
  9. MikeMpls

    MikeMpls Well-Known Member

    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.
     
    aiman.h.kallaf likes this.
  10. RoldanLT

    RoldanLT Well-Known Member

    Use Cloudflare and banned countries on Threat Control, easy :)
     
    aiman.h.kallaf likes this.
  11. damoncloudflare

    damoncloudflare Active Member

    Just a quick note that this will only challenge visitors from Russia with a challenge page (captcha). Humans can still enter the site passing the captcha, but it is very effective at stopping bots.
     
    RoldanLT likes this.

Share This Page