PHP MySQL admin tools

Configuration to block IP addresses probing your web server for PHP-based database admin tools.


# Fail2Ban configuration file
# Check Apache logs for attempts to access PHP admin tools


# Option: failregex
# Notes.: regex to match the 404'ed PMA file in the logfile. The
# host must be matched by a group named "host". The tag "" can
# be used for standard IP/hostname matching and is only an alias for
# (?:::f{4,6}:)?(?P\S+)
# Values: TEXT



Fail2ban scans log files like /var/log/pwdfail or /var/log/apache/error_log and bans IP that makes too many password failures. It updates firewall rules to reject the IP address.

Download the source:

cd /extra/src
tar jxf fail2ban-0.8.4.tar.bz2
cd fail2ban-0.8.4

Run the installation script. fail2ban will be installed in /usr/share/fail2ban/ and /usr/bin/, configuration files will be in /etc/fail2ban:

./ install

Automatic startup


Subscribe to RSS - fail2ban

Recent Updates