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">
<add ipAddress="8.8.8.0" subnetMask="255.255.255.0"/>
Web.config deny
<ipSecurity allowUnlisted="true">
<add ipAddress="8.8.8.0" subnetMask="255.255.255.0"/>
Cisco ACL
deny ip 8.8.8.0 0.0.0.255 any
Step 1: Choose IPv4 or IPv6
IPv4
IPv6(developing)
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.
Afghanistan \r\n Aland Islands \r\n Albania \r\n Algeria \r\n American Samoa \r\n Andorra \r\n Angola \r\n Anguilla \r\n Antarctica \r\n Antigua and Barbuda \r\n Argentina \r\n Armenia \r\n Aruba \r\n Australia \r\n Austria \r\n Azerbaijan \r\n Bahamas the \r\n Bahrain \r\n Bangladesh \r\n Barbados \r\n Belarus \r\n Belgium \r\n Belize \r\n Benin \r\n Bermuda \r\n Bhutan \r\n Bolivia \r\n Bosnia and Herzegovina \r\n Botswana \r\n Brazil \r\n British Indian Ocean Territory (Chagos Archipelago) \r\n British Virgin Islands \r\n Brunei Darussalam \r\n Bulgaria \r\n Burkina Faso \r\n Burundi \r\n Cambodia \r\n Cameroon \r\n Canada \r\n Cape Verde \r\n Cayman Islands \r\n Central African Republic \r\n Chad \r\n Chile \r\n China \r\n Christmas Island \r\n Cocos (Keeling) Islands \r\n Colombia \r\n Comoros the \r\n Congo \r\n Congo the \r\n Cook Islands \r\n Costa Rica \r\n Cote d'Ivoire \r\n Croatia \r\n Cuba \r\n Cyprus \r\n Czech Republic \r\n Denmark \r\n Djibouti \r\n Dominica \r\n Dominican Republic \r\n Ecuador \r\n Egypt \r\n El Salvador \r\n Equatorial Guinea \r\n Eritrea \r\n Estonia \r\n Ethiopia \r\n Faroe Islands \r\n Falkland Islands (Malvinas) \r\n Fiji the Fiji Islands \r\n Finland \r\n France, French Republic \r\n French Guiana \r\n French Polynesia \r\n French Southern Territories \r\n Gabon \r\n Gambia the \r\n Georgia \r\n Germany \r\n Ghana \r\n Gibraltar \r\n Greece \r\n Greenland \r\n Grenada \r\n Guadeloupe \r\n Guam \r\n Guatemala \r\n Guernsey \r\n Guinea \r\n Guinea-Bissau \r\n Guyana \r\n Haiti \r\n Holy See (Vatican City State) \r\n Honduras \r\n Hong Kong \r\n Hungary \r\n Iceland \r\n India \r\n Indonesia \r\n Iran \r\n Iraq \r\n Ireland \r\n Isle of Man \r\n Israel \r\n Italy \r\n Jamaica \r\n Japan \r\n Jersey \r\n Jordan \r\n Kazakhstan \r\n Kenya \r\n Kiribati \r\n Korea \r\n Korea \r\n Kuwait \r\n Kyrgyz Republic \r\n Lao \r\n Latvia \r\n Lebanon \r\n Lesotho \r\n Liberia \r\n Libyan Arab Jamahiriya \r\n Liechtenstein \r\n Lithuania \r\n Luxembourg \r\n Macao \r\n Macedonia \r\n Madagascar \r\n Malawi \r\n Malaysia \r\n Maldives \r\n Mali \r\n Malta \r\n Marshall Islands \r\n Martinique \r\n Mauritania \r\n Mauritius \r\n Mayotte \r\n Mexico \r\n Micronesia \r\n Moldova \r\n Monaco \r\n Mongolia \r\n Montenegro \r\n Montserrat \r\n Morocco \r\n Mozambique \r\n Myanmar \r\n Namibia \r\n Nauru \r\n Nepal \r\n Netherlands the \r\n New Caledonia \r\n New Zealand \r\n Nicaragua \r\n Niger \r\n Nigeria \r\n Niue \r\n Norfolk Island \r\n Northern Mariana Islands \r\n Norway \r\n Oman \r\n Pakistan \r\n Palau \r\n Palestinian Territory \r\n Panama \r\n Papua New Guinea \r\n Paraguay \r\n Peru \r\n Philippines \r\n Pitcairn Islands \r\n Poland \r\n Portugal, Portuguese Republic \r\n Puerto Rico \r\n Qatar \r\n Reunion \r\n Romania \r\n Russian Federation \r\n Rwanda \r\n Saint Barthelemy \r\n Saint Helena \r\n Saint Kitts and Nevis \r\n Saint Lucia \r\n Saint Martin \r\n Saint Pierre and Miquelon \r\n Saint Vincent and the Grenadines \r\n Samoa \r\n San Marino \r\n Sao Tome and Principe \r\n Saudi Arabia \r\n Senegal \r\n Serbia \r\n Seychelles \r\n Sierra Leone \r\n Singapore \r\n Slovakia (Slovak Republic) \r\n Slovenia \r\n Solomon Islands \r\n Somalia, Somali Republic \r\n South Africa \r\n South Georgia and the South Sandwich Islands \r\n Spain \r\n Sri Lanka \r\n Sudan \r\n Suriname \r\n Svalbard & Jan Mayen Islands \r\n Swaziland \r\n Sweden \r\n Switzerland, Swiss Confederation \r\n Syrian Arab Republic \r\n Taiwan \r\n Tajikistan \r\n Tanzania \r\n Thailand \r\n Timor-Leste \r\n Togo \r\n Tokelau \r\n Tonga \r\n Trinidad and Tobago \r\n Tunisia \r\n Turkey \r\n Turkmenistan \r\n Turks and Caicos Islands \r\n Tuvalu \r\n Uganda \r\n Ukraine \r\n United Arab Emirates \r\n United Kingdom \r\n United States of America \r\n United States Minor Outlying Islands \r\n United States Virgin Islands \r\n Uruguay, Eastern Republic of \r\n Uzbekistan \r\n Vanuatu \r\n Venezuela \r\n Vietnam \r\n Wallis and Futuna \r\n Yemen \r\n Zambia \r\n Zimbabwe \r\n
Step 3: Choose the output format
Apache 2.0 - 2.3 .htaccess allow
Apache 2.0 - 2.3 .htaccess deny
Apache 2.4 .htaccess allow
Apache 2.4 .htaccess deny
Nginx Allow
Nginx Deny
Linux iptables
Netmask
Inverse Netmask
Web.config allow
Web.config deny
Cisco ACL
Are you a human ? Reload captcha .
No more captcha ? Please
Login or
Signup Free !
×
Warning! Please click the reCAPTCHA checkbox