Skip to content

Why No Delay Options in 2.0

Claude edited this page Nov 22, 2026 · 1 revision

BFStop 2.0.0 no longer delays the response to failed logins, and the delay settings are gone. This page answers the questions you may have about that. The reasoning in detail, with the evaluation and the sources, is on Design Decision No Response Delays.

What exactly has changed?

  • These settings were removed: Delay and Adaptive Delay, with Maximum delay, Minimum threshold and Maximum threshold.
  • Failed logins are answered at once. They are still recorded, counted and blocked exactly as before.
  • The account-level protection works differently. BFStop still notices when one account is attacked from many addresses. Instead of slowing those attempts down, it now blocks each of those addresses sooner (see below).

What happens when I update from 1.x?

The update removes the old delay settings from your configuration; there's nothing to do in the settings. If your settings delayed failed logins (Delay above 0, or Adaptive Delay on), you'll see a notice after the update saying that the delays are gone and recommending rate limiting in the web server instead.

Why were the delays removed?

They protected almost nothing, and they put the site at risk:

  • They didn't slow down real attacks. Attack tools and botnets don't wait for one answer before sending the next guess; they send many attempts in parallel, from many addresses. A delay only slows down a client that waits for each answer, and BFStop blocks such a client after a few attempts anyway (10 by default).
  • They let attackers make your site unavailable. While PHP waits, it holds one of the server's PHP workers, and Joomla holds its database connection. Small servers and shared hosting often have only 5–20 workers. An attacker sending failed logins in parallel could tie them all up, and then your visitors would get errors (502/503). The delay turned a brute-force attack into a denial of service.
  • They hit your real users too. Anyone who mistyped their password waited, and the adaptive delay slowed everybody down whenever there were many failed logins on the site.

Security guidance agrees. OWASP recommends limiting failed login attempts "but be careful not to create a denial of service scenario", and NIST requires limiting failed attempts, not delaying them. BFStop's blocking does the limiting.

Is my site less protected now?

No. Blocking is what protects the login, and it works as before:

  • Distributed attacks on one account are now handled better than before. They used to cost the attacker a 5-second delay, which they avoided by sending in parallel. Now each address attacking that account is blocked after fewer attempts.
  • Your site can't be made unavailable through BFStop's delays any more.

What replaced the account-level throttle?

The tab is now called Distributed Attacks on One Account (Components → Brute Force Stop → Settings):

Setting Default Meaning
Detect Distributed Attacks on One Account Enabled Count failed logins per username across all addresses, not only per address.
Failed Attempts per Account 20 This many failed logins for one username, from any addresses...
Counting Window (Minutes) 60 ...within this time make the account count as "under attack".
Risk Points While Under Attack 3 While it is under attack, every failed login for it scores this many more risk points.

With the default Block Threshold Change Per Risk Point of 1 (tab Adaptive Risk Scoring), each risk point allows one failed login less. So with the defaults, an address trying an account that is under attack is blocked after 7 failed logins instead of 10, and never after fewer than Minimum Allowed Attempts. If you set Risk Points While Under Attack to 0, the attack is only written to BFStop's log.

My users get blocked sooner while their account is attacked. Why, and what can they do?

That's intended: attackers spreading their guesses over many addresses get fewer guesses each. Your users are protected in three ways:

  • The account itself is never locked. The right password always works.
  • Their usual addresses are trusted. From an address they have logged in from before, the known-IP trust signal (Known-IP Trust Points, 5 by default) gives them more attempts, not fewer.
  • They can get unblocked. If they still get blocked, the User Block Message (an unblock link by mail) and the password reset are still available, as are the Remaining attempts and password reminder messages if you enabled them.

If this is too strict for your site, lower Risk Points While Under Attack or raise Failed Attempts per Account.

I use "Reporting Only" as the block mode. What changes for me?

In that mode BFStop now only records failed logins and sends notifications. Before, a configured delay still slowed attempts down, though only those of clients that waited for the answer. If you want protection, switch to one of the blocking modes, or use your web server's rate limiting (below).

Can I slow down login attempts some other way?

Yes. Do it in the web server, a proxy in front of it, or the firewall. They can hold or refuse connections without tying up a PHP worker.

The examples below show the idea. Adapt and test them on your own server first: paths, rates and module availability differ, and a wrong rule can lock you out of your own backend.

nginx (limit_req): this limits POST requests to the administrator, where Joomla's backend login goes. The frontend login's URL depends on your menu and SEF settings, so check yours before adding a rule for it.

# in the http {} block: only POST requests get a key, and an empty key is never limited
map $request_method $bfstop_login_key {
    POST    $binary_remote_addr;
    default "";
}
limit_req_zone $bfstop_login_key zone=joomla_login:10m rate=30r/m;

# in the server {} block, next to your existing PHP location
location = /administrator/index.php {
    limit_req zone=joomla_login burst=10 nodelay;
    limit_req_status 429;
    include fastcgi_params;           # as in your existing PHP location
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_pass unix:/run/php/php-fpm.sock;   # yours
}

This affects every form saved in the backend, not only logins, so keep the rate generous. nodelay makes nginx refuse excess requests (429) instead of queueing them.

Apache (mod_evasive, installed separately): this limits requests per page and per site for each address. It applies to the whole site, not only the login.

<IfModule mod_evasive20.c>
    DOSPageCount      10
    DOSPageInterval   1
    DOSSiteCount      150
    DOSSiteInterval   1
    DOSBlockingPeriod 60
</IfModule>

mod_qos is an alternative with finer control (for example, limits for one URL).

fail2ban: block BFStop's blocked addresses in the firewall. With Logging set to at least "Info", BFStop writes a line like ... INFO Inserted IP address 203.0.113.7 into block list to plg_system_bfstop.log.php in Joomla's log folder (by default administrator/logs). A fail2ban filter on that line keeps the address out at the firewall:

# /etc/fail2ban/filter.d/bfstop.conf
[Definition]
failregex = INFO Inserted IP address <HOST> into block list

# /etc/fail2ban/jail.d/bfstop.conf
[bfstop]
enabled  = true
filter   = bfstop
logpath  = /path/to/joomla/administrator/logs/plg_system_bfstop.log.php
maxretry = 1
bantime  = 3600

An IPv6 client is blocked by its network (for example 2001:db8:1::/56), which <HOST> doesn't match, so this example covers IPv4 addresses only.

Many hosting providers and CDNs (for example a web application firewall) offer login rate limiting as well.

Can I get the old delay back?

Not in BFStop 2.0, and there are no plans to bring it back, for the reasons above. If you need clients slowed down, use the web server options above. They do what the delay tried to do, without the risk.

Where can I read more?

Clone this wiki locally