Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Block one ip

Discussion in 'General Discussion' started by Sampei, Oct 19, 2002.

  1. Sampei

    Sampei Member

    Joined:
    May 27, 2002
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    301
    How can I block an Ip from access to my server without a firewall hardware ? Have I to install PMFirewall on my box ? Is it possible ? is there a tutorial on how to install it on a cpanel box ?

    Thank you
     
  2. itf

    itf Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    624
    Likes Received:
    0
    Trophy Points:
    316
    [quote:1b8b023afd][i:1b8b023afd]Originally posted by Sampei[/i:1b8b023afd]

    How can I block an Ip from access to my server without a firewall hardware ? Have I to install PMFirewall on my box ? Is it possible ? is there a tutorial on how to install it on a cpanel box ?

    Thank you[/quote:1b8b023afd]
    In a root SSH session:

    pico /etc/hosts.deny

    add this line: (replace 10.20.30.40 with your desire IP address)

    ALL : 10.20.30.40
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice