cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Go to solution
New

Is there a way to block a whole country using IP Blocker in cPanel?

Hi All , 

IP blocker in cPanel allows to block IP by range but takes alot of time it to enter it. 

is there any easier way to block whole country ? like uploading .csv file 

 

 

 

 

 

2 REPLIES 2
Helper II
Solution

Re: IP Blocker

Hi @Akkio,

 

Do you have access of your cPanel SSH?

If have, try to use iptables and allow specific IP Address in INPUT that can access the cPanel then set INPUT to drop.

 

Kindly check the link below. Hope it help.

https://www.howtogeek.com/177621/the-beginners-guide-to-iptables-the-linux-firewall/

Highlighted

Re: IP Blocker

This method is very time time consuming. To enter each on individually could take DAYS.

 

So example here are just a few from Russia:

 

212.74.192.0/19
212.74.224.0/21
212.74.232.0/23
212.74.235.0/24
212.74.236.0/22
212.74.240.0/20

 

There is no way to delimit the IPs and therefore they have to entered individually, which could take DAYS to import. 

 

There needs a better solution!