Block country ip
Select the countries you want to block, IP address version (IPv4 or IPv6), output format and press the "Download" button.
The output format supported are Apache .htaccess,Nginx, Linux iptables, CIDR, Netmask, Inverse Netmask, IIS web.config and Cisco ACL. Please find the details below:
Format | Sample code format |
---|---|
Apache .htaccess allow | allow from 8.8.8.0/24 |
Apache .htaccess deny | deny from 8.8.8.0/24 |
Nginx ip allow | allow 1.2.3.4/24; deny all; |
Nginx ip deny | deny 91.212.45.0/24; |
CIDR | 8.8.8.0/24 |
Linux iptables | iptables -A INPUT -s 8.8.8.8/24 -j DROP |
Netmask | 8.8.8.0/255.255.255.0 |
Inverse Netmask | 8.8.8.0 0.0.0.255 |
Web.config allow |
<ipSecurity allowUnlisted="false">
|
Web.config deny |
<ipSecurity allowUnlisted="true">
|
Cisco ACL | deny ip 8.8.8.0 0.0.0.255 any |
Step 1: Choose IPv4 or IPv6
Step 2: Select the countries from the list you want to block
Unregistered user can generates table for 2 country at one time. Registered user can generates up to 30 countries at one time.if you have an account please Sign In or Sign Up new account today,It's Free.Step 3: Choose the output format
About Block country ip