Skip to main content

IP Address Deny Manager - broken

Comments

3 comments

  • cPanelMichael
    Hello, My initial thought is that your account's .htaccess file located at the path below includes some broken entries:
    /home/$username/public_html/.htaccess
    The IP Blocker feature in cPanel blocks the IP addresses by inserting them with a deny rule into this file, and this tells Apache which IP addresses to deny access from. However, often times users will manually add their own custom rules to the .htaccess file, or sometimes custom rules are added automatically when installing an application such as WordPress or Joomla. These rules are sometimes inserted in an incorrect format, which can prevent the IP Blocker feature in cPanel from obtaining a list of previously blocked IP addresses. Do you have root access to this server? If so, you can run the following command while opening the IP Blocker feature in your browser to see if any errors show up:
    tail -f /usr/local/cpanel/logs/error_log
    Do you notice any errors showing up the moment you access the feature from within cPanel? If so, could you paste them into this thread, ensuring to remove any real domain names and IP addresses? Thank you.
    0
  • -moO-
    Hi Michael, looks like you've shed the proper light on this quandary. Our /home/username/public_html/.htaccess file contains the following, which seems to not play nice with the IP Blocker: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^url.com [NC] RewriteRule ^(.*)$
    0
  • cPanelMichael
    Our /home/username/public_html/.htaccess file contains the following, which seems to not play nice with the IP Blocker:

    To clarify, does the option work properly when temporarily removing the existing entries from the .htaccess file? Thank you.
    0

Please sign in to leave a comment.