Title: Automatic ban user
Last modified: August 31, 2016

---

# Automatic ban user

 *  [blog2015sven](https://wordpress.org/support/users/blog2015sven/)
 * (@blog2015sven)
 * [10 years ago](https://wordpress.org/support/topic/automatic-ban-user/)
 * The function “automatic ban admin user” is working very well !!
 * Is there a possibility to extend the list of usernames this function is using
   beside admin?
 * admin
    Admin administrator Administrator “Domainnaim” (like “wordpress” for this
   site) …
 * Sure, there is no official function available in the plugin, but maybe there 
   is one file or the database where I can add this useres once manually
 * [https://wordpress.org/plugins/better-wp-security/](https://wordpress.org/plugins/better-wp-security/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [blog2015sven](https://wordpress.org/support/users/blog2015sven/)
 * (@blog2015sven)
 * [10 years ago](https://wordpress.org/support/topic/automatic-ban-user/#post-7448794)
 * Must be to change something in this file I think:
 * wp-content/plugins/ithemes-security-pro/core/modules/brute-force/class-itsec-
   brute-force.php
 * …and in this area:
 *  //Look for the “admin” user name and ban it if it is set to auto-ban
    if ( isset(
   $this->settings[‘auto_ban_admin’] ) && $this->settings[‘auto_ban_admin’] === 
   true && ‘admin’ === $username ) {
 *  $itsec_logger->log_event( ‘brute_force’, 5, array(), ITSEC_Lib::get_ip(), $username);
 *  $itsec_lockout->do_lockout( ‘brute_force_admin_user’, $username );
 *  }

Viewing 1 replies (of 1 total)

The topic ‘Automatic ban user’ is closed to new replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=3529351)
 * [Kadence Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [blog2015sven](https://wordpress.org/support/users/blog2015sven/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/automatic-ban-user/#post-7448794)
 * Status: not resolved