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.

block an IP

Discussion in 'General Discussion' started by jimd, Jun 15, 2002.

  1. jimd

    jimd Member

    Joined:
    Apr 11, 2002
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    I think I remember somewhere that it is possible to disallow access to he entire site from particular IP addresses. I know about the hotlink protection, but I need to block all access from an IP.
    JImD
     
  2. awsol

    awsol cPanel Test Bitch

    Joined:
    Feb 8, 2002
    Messages:
    591
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Boston MA
    /etc/hosts.deny
     
  3. jimd

    jimd Member

    Joined:
    Apr 11, 2002
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Thanks, but I need a tiny bit more help!

    Thanks, but I need a tiny bit more help:
    So in /etc/ I create a file named hosts.deny and list the ip addresses that are banned with a semicolon seperating them?
    Also, can I use wildcards?
    Thanks a million!
     
  4. itf

    itf Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    16
    Connect to your server via SSH then type

    info hosts.deny

    then read everything you need including how to set the wildcards
     
Loading...

Share This Page