Skip to main content

How to whitelist dynamic IPs & blacklist certain countries ?

Comments

3 comments

  • mageshm
    @almusammem, Are you speaking about mod_security block. If so, you can whitelist the particular rule to username. For country block use CSF but most of the IP address in GEO database so you can't block the entire country.
    0
  • cPanelMichael
    Hello :) Are you referring to cPHulk or just an overall block in your firewall? Block Whole Countries in CSF Thank you.
    0
  • keat63
    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.
    0

Please sign in to leave a comment.