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.

Deny IP Manager

Discussion in 'General Discussion' started by ldo, Sep 7, 2014.

  1. ldo

    ldo Registered

    Joined:
    Sep 7, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi,

    I am hoping someone can advise me with a newbie question.

    I would like to set up sub-domains on a dedicated server and use the deny IP feature to selectively allow access to these. Can anyone tell me if it is possible to selectively deny IP access to some sub domains or is it only possible to blanket deny IP across the entire domain set?

    Thanks in advance.
     
  2. avonni

    avonni Member

    Joined:
    Sep 6, 2014
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Find the .htaccess file inside subdomain folder, than add:

    Code:
    order deny,allow
    allow from XXX.XXX.XXX.XXX
    allow from XXX.XXX.XXX.XXX
    deny from all
    Where XXX.XXX.XXX.XXX are the IPs you want to allow.
    This will deny access from all, except from these IPs.
     
  3. Eric

    Eric Administrator
    Staff Member

    Joined:
    Nov 25, 2007
    Messages:
    746
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Howdy,

    You could also setup a password and password protect it from cPanel.

    Thanks!
     
Loading...

Share This Page