• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved WordPress + Fail2Ban... strange behavior with a error status of 403

MicheleB

Regular Pleskian
Hello,
I had a WordPress installation that every time the users opened in their browsers, after 5 pages/click (Fail2Ban settings) Fail2Ban blocked their IP (jail used: plesk-apache).

In the browser's inspection panel I found an error, status of 403 (Forbidden) for a single file ([http://www.website.com/wp-content/themes/starter/quick-style.php]).

I've removed this 403 error and the website returned to works good, without more IP blacklist.

My question is... is it a normal behavior that Fail2Ban block an IP for a 403 error?

Thanks.
 
Last edited:
Hi MicheleB,

My question is... is it a normal behavior that Fail2Ban block an IP for a 403 error?
Yes, if you apply the filter, to avoid brute-force login attempts, then this behaviour is absolutely as expected. Pls. consider to investigate the filter - regex for the specific filter ( in your case: "/etc/fail2ban/filter.d/plesk-apache.conf" ), to verify for yourself, why the filter is blocking IPs.
 
Ok, thanks.

I've tried to investigate the filter but I didn't find the file "/etc/fail2ban/filter.d/plesk-apache.conf".
 
Hi MicheleB,

my suggestion might be misleading, because I just guessed the filter - name from your error message. Pls. have a look at your "/etc/fail2ban/jail.d/plesk.conf" or "jail.local" configuration file, to identify your correct filter name:

Example:

...
# HTTP servers
[plesk-apache]

enabled = false
action = iptables-multiport[name=apache, port="http,https,7080,7081"]
filter = apache-auth
logpath = /var/www/vhosts/system/*/logs/error_log
/var/log/apache2/*error.log
/var/www/vhosts/system/*/logs/*access*log
/var/log/apache2/*access.log
maxretry = 6
 
Back
Top