The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

blacklist by country IP range

Discussion in 'General Discussion' started by abubin, Oct 17, 2005.

  1. abubin

    abubin Well-Known Member

    Joined:
    Dec 7, 2004
    Messages:
    393
    Likes Received:
    1
    Trophy Points:
    18
    Can I know how to blacklist certain block of IP range from accessing one of our website? I mean, I can do it in APF but that would block those IP range for the whole server. I am looking for one that could be effective on a certain account in cpanel.

    So far, I only found one post that talks about adding a PHP script into webpages but that would be not idea for websites with lots of pages. Perhaps adding some script on httpd.conf file? or .access file?

    Before anyone start, this is by no means any racist thingie as described here http://forums.cpanel.net/showthread.php?t=41776&highlight=blacklist+country

    Thanks in advance.
     
  2. bamasbest

    bamasbest Well-Known Member

    Joined:
    Jan 10, 2004
    Messages:
    531
    Likes Received:
    0
    Trophy Points:
    16
    cpanel - IP Deny Manager

    This will properly format the .htaccess file for you for that particular domain.
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Yup. And you can get IP deny lists by country from www.blackholes.us however, they're having difficulties of their own at present.
     
    #3 chirpy, Oct 17, 2005
    Last edited: Oct 17, 2005
Loading...

Share This Page