Fail2Ban filter for Apache2 ModSecurity2
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Fail2Ban Filter for Apache2 ModSecurity2

Note: This will only work if you have full access to your web server's /etc/fail2ban/ files.

How to use:

  • Install, enable, and configure ModSecurity2 to your web server.
  • Copy /filter.d/apache-security2.conf from this repository to /etc/fail2ban/filter.d/
  • Add a [apache-security2] section to the Jails section of your /etc/fail2ban/jail.local file...
	port     = http,https
	logpath  = %(apache_error_log)s
	maxretry = 4
	enabled = true
  • Restart Fail2Ban: service fail2ban restart

Additional Notes:

More info: