Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Great article Justin. Just what i needed, exactly what our server needed! Thanks!!!
Great tutorial. Just to make a note that you need to update some files, or else it won’t work properly (like in my case).
These are the 2-files to update (or more if you need to) : https://github.com/fail2ban/fail2ban/blob/0.8/config/filter.d/apache-common.conf https://github.com/fail2ban/fail2ban/blob/0.8/config/filter.d/apache-auth.conf
Very useful article. I did come across one problem when following the article.
Should the log path for [php-url-fopen] be /var/log/apache*/access.log not /var/www/apache/*access.log
first i do : https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-14-04 Second i do your tutorial. next i test fail2ban on /phpmyadmin it dont work !?
++++
[Wed Dec 30 11:47:44.542766 2015] [auth_basic:error] [pid 17130] [client 11.111.111.111:60643] AH01618: user q not found: /phpmyadmin/
[Wed Dec 30 11:47:44.798856 2015] [auth_basic:error] [pid 17130] [client 11.111.111.111:60643] AH01618: user q not found: /phpmyadmin/
[Wed Dec 30 11:47:45.048247 2015] [auth_basic:error] [pid 17130] [client 11.111.111.111:60643] AH01618: user q not found: /phpmyadmin/
[Wed Dec 30 11:47:45.278035 2015] [auth_basic:error] [pid 17130] [client 11.111.111.111:60643] AH01618: user q not found: /phpmyadmin/
[Wed Dec 30 11:47:45.502666 2015] [auth_basic:error] [pid 17130] [client11.111.111.111:60643] AH01618: user q not found: /phpmyadmin/
[Wed Dec 30 11:47:45.746034 2015] [auth_basic:error] [pid 17130] [client 11.111.111.111:60643] AH01618: user q not found: /phpmyadmin/
[Wed Dec 30 11:47:46.904837 2015] [auth_basic:error] [pid 17130] [client 11.111.111.111:60643] AH01618: user q not found: /phpmyadmin/
++++
sudo fail2ban-client status apache
Status for the jail: apache
|- filter
| |- File list: /var/log/apache2/error.log
| |- Currently failed: 0
| `- Total failed: 0
`- action
|- Currently banned: 0
| `- IP list:
`- Total banned: 0
+++++
i can’t seem to get apache-noscript filter to work - i can see in my error logs that people from the same IP address are trying to access .php files that dont exist more than the maxretry amount, but it doesn’t block them. i tried fail2ban-regex for the conf file and the error log file and it doesn’t pick any of them up:
fail2ban-regex “/var/log/apache2/error.log” /etc/fail2ban/filter.d/apache-noscript.conf
Great tutorial, thanks! Just a note, as of version 0.9, there’s no need to specify the filter for each jail as long as the jail title matches the filter name. https://github.com/fail2ban/fail2ban/blob/master/ChangeLog#L480