How to whitelist dynamic IPs & blacklist certain countries ?

almusammem

Registered
Feb 11, 2015
1
0
1
cPanel Access Level
Root Administrator
How to whitelist dynamic IPs & blacklist certain countries ?

Hi
Is there any way to whitelist my IP addresses which are dynamic IPs and changes continuously ?
Another thing: How to blacklist a particular country IPs such as China because I noticed that most of brute force comes from it ?
Thanks

- - - Updated - - -

For WHM Panel
 

keat63

Well-Known Member
Nov 20, 2014
1,916
263
113
cPanel Access Level
Root Administrator
Re: How to whitelist dynamic IPs & blacklist certain countries ?

With my dynamic IP at home, it appears that the first two octets remain constant.
So in cphulk whitelist, add the first two octets as follows xxx.xxx.0.0/16

in host access control add the same two octects but in the following format.
xxx.xxx.0.0/255.255.0.0

No disrespect, i'm assuming with only 1 post, this is all new to you. ??
If this is the case, then i would highly recommend that you install CSF firewall, as a matter of importance.
 
Last edited: