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