You are here

Stop Drupal 7 from banning friendly IPs - Drupal 7 IP Blocked

Drupal will block a user's IP if too many attemps are made to access the Drupal 7 site within a set amount of time.

 

To change this default setting (5 times) add the following lines to your settings.php file.

$conf['user_failed_login_user_limit'] = PHP_INT_MAX;
$conf['user_failed_login_user_window'] = 5;

PHP_INT_MAX is the maximum value PHP can assign to an integer. (2,147,483,647)   The above means 2,147,483,647 login attempts are allowed in 5 seconds. If you change the settings.php file the the IPs/users are not blocked anymore.