Skip to main content

Ban IP's that access too many 404 pages

Comments

9 comments

  • Infopro
    I can only think of using CSF to ban these IP's.

    Sure you can use CSF for this. Look for the section titled: LF_APACHE_404
    0
  • subtopic
    Sure you can use CSF for this. Look for the section titled: LF_APACHE_404

    Yep, that is what IMH already did, they set that to 100, but as you can see above I am still getting over 600 * (at least) 8 other IP's requesting 404 files each minute it seems.
    0
  • Infopro
    Do you have mod security installed on this server? This thread may be of some use to you:
    0
  • subtopic
    I looked under etc/modsecurity
    And don't see that directory, so I take it I don't.
    0
  • Infopro
    Here is where you install it from: WebHost Manager "Security Center "ModSecurity" Vendors "Manage Vendors
    0
  • subtopic
    Looks like I have it in WHM. How do I configure the 404 banning in this? /image.ibb.co/jfasL9/mod.png Here is the vendors page preview.ibb.co/gHhBDU/mod2.png
    0
  • Infopro
    You don"t but you should install it, mod security can help.
    0
  • subtopic
    Alright, I followed a guide and went into the EasyApache4 settings, and looked at the modules installed, and mod_security is installed it says. A little green box next to it says installed. If you can tell me what I can do with mod_security to help with this issue, I can search into it. I appreciate your help!
    0
  • Infopro
    In your screenshots posted above, you could see it stated Vendor not installed. Did you install it from there on that page? It's a few clicks. Once mod security is installed properly, and you've configured it on the mod security settings page: WebHost Manager "Security Center "ModSecurity" Configuration "Configure Global Directives You'll see a list of rule hits on this page as they get triggered by this sort of bad traffic: WebHost Manager "Security Center "ModSecurity" Tools "Hits List You should also find the docs of some use for making your server more secure: Recommended Security Settings - cPanel Knowledge Base - cPanel Documentation
    0

Please sign in to leave a comment.