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.

Security / IP Address Blocker

Discussion in 'General Discussion' started by canou83, Nov 18, 2016.

Tags:
  1. canou83

    canou83 Well-Known Member

    Joined:
    Jul 20, 2016
    Messages:
    62
    Likes Received:
    7
    Trophy Points:
    8
    Location:
    France
    cPanel Access Level:
    Website Owner
    Hi, when I add an IP address to block in my security / IP Address Blocker I thought this IP address was added to the .htaccess of the site in the form of
    Deny from xxx.xx.xx.xx Outside I do not see any additions in the htaccess.

    Is this due to the security of my .htaccess?

    Thanks.
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    542
    Likes Received:
    39
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I think you are ting to add IP through cPanel and that's why IP added in .htaccess. If you want to add IP in server firewall then you need to have root access to block IP.
     
  3. canou83

    canou83 Well-Known Member

    Joined:
    Jul 20, 2016
    Messages:
    62
    Likes Received:
    7
    Trophy Points:
    8
    Location:
    France
    cPanel Access Level:
    Website Owner
    Yes by Cpanel, but it does not add to the htaccess when it should be added.

    I have root access to WHM.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,958
    Likes Received:
    1,274
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Blocking an IP address via "cPanel >> IP Blocker" should automatically add the following entry to the .htaccess file within the /home/$username/public_html directory:

    Code:
    deny from 1.2.3.4
    Could you let us know of any output to /usr/local/cpanel/logs/error_log when using the "IP Blocker" permissions? What are the permissions/ownership values on the account's .htaccess file?

    Thank you.
     
  5. canou83

    canou83 Well-Known Member

    Joined:
    Jul 20, 2016
    Messages:
    62
    Likes Received:
    7
    Trophy Points:
    8
    Location:
    France
    cPanel Access Level:
    Website Owner
    OK Michael. I saw in the last line. Thanks a lot.

    It's OK
     
    cPanelMichael likes this.
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,958
    Likes Received:
    1,274
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    I'm happy to see it's working well. Thank you for updating us with the outcome.
     
Loading...

Share This Page