• Resolved mrppp

    (@mrppp)


    Using this site to generate code http://www.ip2location.com/free/visitor-blocker

    i get similar to

    deny from 193.218.0.0/24
    deny from 193.228.152.0/24
    deny from 193.254.29.0/24
    deny from 194.0.32.0/24
    deny from 194.0.235.0/24
    deny from 194.8.4.0/24
    deny from 194.8.53.0/24
    deny from 194.8.60.0/24
    deny from 194.9.6.0/23

    is this ok to use in custom code, not sure what the numbers are after the /

    http://wordpress.org/plugins/bulletproof-security/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author AITpro

    (@aitpro)

    http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing

    CIDR notation is a syntax of specifying IP addresses and their associated routing prefix. It appends a slash character to the address and the decimal number of leading bits of the routing prefix, e.g., 192.168.2.0/24 for IPv4, and 2001:db8::/32 for IPv6.

    In laymans terms the slash means the full possible range of IP addresses in the base IP address.

    Yes, most Hosts allow CIDR block format in .htaccess code, but I have seen that using that CIDR block format can cause a site to crash on some Hosts so be prepared to FTP to the site and delete the root .htaccess file if the site crashes.

    Thread Starter mrppp

    (@mrppp)

    Ok thanks, i may give it a miss then

    Guys,
    I have just used ip2location and bulletproof. Ip2location has a selection of countries and you can either generate deny or allow as a text file as shown:
    deny from 193.218.0.0/24
    deny from 193.228.152.0/24

    Works on its own inside .htaccess. Tested on webserver ok.

    I then wanted Bulletproof which create a secure .htaccess file with a section in it for deny allow text.
    I put in the text file into the correct section. It locked me out of wp-admin.
    I would agree that the ip2location should only be used if you can regain admin access to cpanel or ftp a clean .htaccess to recover from such a lock out.
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Country Block’ is closed to new replies.