Skip to main content

Block IP on multiple errors

Comments

1 comment

  • Infopro
    [QUOTE]Example I might want to say if a given IP reaches a total of 10 total 404
    CSF does this: [QUOTE]# This option will keep track of the number of "File does not exist" errors in # HTACCESS_LOG. If the number of hits is more than LF_APACHE_404 in LF_INTERVAL # seconds then the IP address will be blocked # # Care should be used with this option as it could generate many # false-positives, especially Search Bots (use csf.rignore to ignore such bots) # so only use this option if you know you are under this type of attack # # A sensible setting for this would be quite high, perhaps 200 # # To disable set to "0" LF_APACHE_404 =
    0

Please sign in to leave a comment.