Basic auth flood control

See https://drupal.org/node/2160021