Tags:
Free Webmaster Tools
tips for beginners
online calculator
Block China Web Traffic IP
.htaccess generator
uTorrent IPfilter.dat generator
|
|
Example of the result:
1.0.1.0/24
Netmask = 255.255.255.0
Broadcast = 1.0.1.255
Wildcard Mask = 0.0.0.255
Hosts Bits = 8
Max. Hosts = 254 (2^8 - 2)
Host Range = 1.0.1.1 - 1.0.1.254
NETWORK address - Class A
|
Example:
Network range
1.1.0.0-1.1.63.255
CIDR
Host address - 1.1.0.0
Host address (decimal) - 16842752
Host address (hex) - 1010000
Network address - 1.1.0.0
Network mask - 255.255.192.0
Network mask (bits) - 18
Network mask (hex) - FFFFC000
|
Example of the result .htaccess - China
Users from China will not be able to visit your site.
#Country: China
order allow,deny
deny from 1.0.1.0/24 1.0.2.0/23
deny from 1.0.8.0/21
deny from 1.0.32.0/19
deny from 1.1.0.0/24
deny from 1.1.2.0/23 1.1.4.0/22 1.1.8.0/21 1.1.16.0/20 1.1.32.0/19
deny from 1.2.0.0/23 1.2.2.0/24
deny from 1.2.4.0/22 1.2.8.0/21 1.2.16.0/20 1.2.32.0/19 1.2.64.0/18
deny from 1.3.0.0/16
allow from all
ErrorDocument 403 http://www.google.com/
|
Example of the result firewall.conf - China
Users from China will not be able to visit your server.
add deny ip from 1.0.1.0/24 to any in
add deny ip from 1.0.2.0/23 to any in
add deny ip from 1.0.8.0/21 to any in
add deny ip from 1.0.32.0/19 to any in
add deny ip from 1.1.0.0/24 to any in
add deny ip from 1.1.2.0/23 to any in
add deny ip from 1.1.4.0/22 to any in
add deny ip from 1.1.8.0/21 to any in
add deny ip from 1.1.16.0/20 to any in
add deny ip from 1.1.32.0/19 to any in
add deny ip from 1.2.0.0/23 to any in
add deny ip from 1.2.2.0/24 to any in
add allow ip from any to any
|
Example of the result ipfilter.dat - USA
2.0.0.0-13.255.255.255
15.0.0.0-26.255.255.255
28.0.0.0-35.255.255.255
37.0.0.0-38.255.255.255
40.0.0.0-41.255.255.255
44.0.0.0-48.255.255.255
50.0.0.0-57.255.255.255
|
|
|