Sorry, there have been more than 5 failed login attempts for this account. It is temporarily blocked.

posted Sep 7, 2011, 1:31 AM by magic stone

Drupal 7 prevents brute force attacks on accounts. It does so by refusing login attempts when more than 5 attempts failed. The amount of failed logins is recorded in the table 'flood'. You can either wait before trying to login again or clean the flood table with the procedure below.

If you forgot your password, generate a new password and update the database.

Execute the following query on the Drupal database:

DELETE FROM `flood`;

To execute this query it will be necessary to login to the database. This is typically done through the command line or through a GUI interface such as phpMyAdmin.

From the command line, with drush installed:

drush php-eval 'db_query("DELETE FROM `flood`");'