htaccess block IP address range – CIDR IP Address range

Home Forums BulletProof Security Pro htaccess block IP address range – CIDR IP Address range

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8144
    AITpro Admin
    Keymaster

    Email Question:

    Hi –

    Hope you have a nice Friday.

    I will appreciate your opinion about another issue. I need to block a range of IPs like deny from 173.192.128.0/18. Where should I input this information in Bulletproof?

    Also, what does the range 173.192.128.0/18 include? In other words I would like to understand how this range looks like. For example, 173.192.128.0-173.192.63.255. Is it correct?

    Thank you

    #8145
    AITpro Admin
    Keymaster

    See this forum topic link for more explanation about why blocking by IP addresses is completely ineffective and a waste of time: http://forum.ait-pro.com/forums/topic/blocked-attempts-but-no-automatic-blocking-of-ip/#post-24854

    Wiki CIDR Blocks help information
    http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing

    Online IP to CIDR converter
    http://ip2cidr.com/

    China IP blocks/Ranges
    http://www.nirsoft.net/countryip/cn.html

    You would add .htaccess IP address blocking CIDR code in this Custom Code text box:   click the Save Root Custom Code button, go to the BPS Security Modes page and click the Root Folder BulletProof Mode Activate button.

    Example CIDR block .htaccess code usage:

    # BLOCK/FORBID Chinese Spammers by CIDR Blocks
    Order Allow,Deny
    Deny from 27.8.0.0/13
    Deny from 27.16.0.0/12
    Deny from 27.36.0.0/14
    Deny from 27.40.0.0/13
    Deny from 27.50.128.0/17
    Deny from 27.54.192.0/18
    Deny from 27.98.208.0/20
    Deny from 27.98.224.0/19
    Deny from 27.99.128.0/17
    Deny from 27.103.0.0/16
    Deny from 27.106.128.0/18
    Deny from 27.109.32.0/19
    Deny from 27.112.0.0/18
    Deny from 27.112.80.0/20
    Deny from 27.113.128.0/18
    Deny from 27.115.0.0/17
    Deny from 27.128.0.0/15
    Deny from 27.144.0.0/16
    Deny from 27.148.0.0/14
    Deny from 27.152.0.0/13
    Deny from 27.184.0.0/13
    Deny from 27.192.0.0/11
    Deny from 27.224.0.0/14
    Allow from all
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.