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.

IP Block

Discussion in 'General Discussion' started by c4host, May 19, 2003.

  1. c4host

    c4host Well-Known Member

    Joined:
    Mar 7, 2003
    Messages:
    89
    Likes Received:
    0
    Trophy Points:
    6
    Where is the best place to block Ip's

    cPanel.net Support Ticket Number:
     
  2. Nico

    Nico Well-Known Member

    Joined:
    Dec 5, 2001
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Edmond, OK
    I like doing from SSH as 'root'.

    Example:

    /sbin/route add -host 209.217.1.2 gw 127.0.0.1

    replace '209.217.1.2' with the IP you want to block.

    cPanel.net Support Ticket Number:
     
  3. c4host

    c4host Well-Known Member

    Joined:
    Mar 7, 2003
    Messages:
    89
    Likes Received:
    0
    Trophy Points:
    6
    I would like to block a list of ip's

    cPanel.net Support Ticket Number:
     
  4. Clark

    Clark Active Member

    Joined:
    May 26, 2003
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Will this also work if you have a domain that steals image bandwidth from you and you get the ip of their server and add it? I don't want to use hotlink protection...

    cPanel.net Support Ticket Number:
     
  5. SoftmegUK

    SoftmegUK Well-Known Member

    Joined:
    Feb 13, 2002
    Messages:
    372
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    UK
    If you wish to just block IPs using http then use a .htaccess with something like:

    Order deny,allow
    Allow from all
    Deny from xxx.xxx.xxx.xxx

    cPanel.net Support Ticket Number:
     
  6. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Spain
    No, because it's the users of the other domain who access your files directly.

    cPanel.net Support Ticket Number:
     
  7. SoftmegUK

    SoftmegUK Well-Known Member

    Joined:
    Feb 13, 2002
    Messages:
    372
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    UK
    It would be best to use hotlink protection unless you want 2 block out the whole internet :p

    cPanel.net Support Ticket Number:
     
  8. c4host

    c4host Well-Known Member

    Joined:
    Mar 7, 2003
    Messages:
    89
    Likes Received:
    0
    Trophy Points:
    6
    I used a hotlink and forwarde them to a another address

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page