Title: Ban User ERROR
Last modified: August 31, 2016

---

# Ban User ERROR

 *  Resolved [Sergey9999](https://wordpress.org/support/users/sergey9999/)
 * (@sergey9999)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/ban-user-error/)
 * When i turn on ban user and put ip adress when i want block, i get 500 error.
   What can we do for resolve this problem?
 * —
    Server Information: Server Type: Apache/2.4.17 (FreeBSD) PHP/7.0.0 Operating
   System: FreeBSD Browser Compression Supported: gzip, deflate PHP Process User(
   UID:GID): unavailable (unavailable:undefined)
 * [https://wordpress.org/plugins/better-wp-security/](https://wordpress.org/plugins/better-wp-security/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [dwinden](https://wordpress.org/support/users/dwinden/)
 * (@dwinden)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/ban-user-error/#post-7280003)
 * [@sergey9999](https://wordpress.org/support/users/sergey9999/)
 * Check your web server error_log for any errors.
 * dwinden
 *  Thread Starter [Sergey9999](https://wordpress.org/support/users/sergey9999/)
 * (@sergey9999)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/ban-user-error/#post-7280036)
 * This is log at once after error. What this means?
 * [Fri Apr 15 12:02:59.059234 2016] [core:alert] [pid 9229] [client *my ip*] /home/*
   mysite*/*mysite*/docs/.htaccess: Unknown Authz provider: ip, referer: [http://*mysite*/wp-admin/admin.php?page=toplevel_page_itsec_settings&settings-updated=true](http://*mysite*/wp-admin/admin.php?page=toplevel_page_itsec_settings&settings-updated=true)
 * [Fri Apr 15 12:02:59.288386 2016] [core:alert] [pid 9230] [client [@my](https://wordpress.org/support/users/my/)
   ip@] /home/*mysite*/*mysite*/docs/.htaccess: Unknown Authz provider: ip, referer:
   [http://*mysite*/wp-admin/admin.php?page=toplevel_page_itsec_settings](http://*mysite*/wp-admin/admin.php?page=toplevel_page_itsec_settings)
 * [Fri Apr 15 12:03:01.940305 2016] [core:alert] [pid 9248] [client [@my](https://wordpress.org/support/users/my/)
   ip@] /home/*mysite*/*mysite*/docs/.htaccess: Unknown Authz provider: ip, referer:
   [http://*mysite*/wp-admin/admin.php?page=toplevel_page_itsec_settings](http://*mysite*/wp-admin/admin.php?page=toplevel_page_itsec_settings)
 * [Fri Apr 15 12:03:02.124732 2016] [core:alert] [pid 9250] [client [@my](https://wordpress.org/support/users/my/)
   ip@] /home/*mysite*/*mysite*/docs/.htaccess: Unknown Authz provider: ip, referer:
   [http://*mysite/wp-admin/admin.php?page=itsec](http://*mysite/wp-admin/admin.php?page=itsec)
 * [Fri Apr 15 12:03:04.190525 2016] [core:alert] [pid 9247] [client [@my](https://wordpress.org/support/users/my/)
   ip@] /home/*my site*/*my site*/docs/.htaccess: Unknown Authz provider: ip
 * [Fri Apr 15 12:03:04.817838 2016] [core:alert] [pid 9975] [client [@my](https://wordpress.org/support/users/my/)
   ip@] /home/*mysite*/*mysite/docs/.htaccess: Unknown Authz provider: ip, referer:
   [http://mysite*.com/wp-admin/admin.php?page=itsec](http://mysite*.com/wp-admin/admin.php?page=itsec)
 *  [dwinden](https://wordpress.org/support/users/dwinden/)
 * (@dwinden)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/ban-user-error/#post-7280038)
 * [@sergey9999](https://wordpress.org/support/users/sergey9999/)
 * Make sure the **mod_authz_host** module is loaded by the Apache web server.
 * According to the Apache 2.4.x online docs:
 * > Apache’s Require directive is used during the authorization phase to ensure
   > that a user is allowed or denied access to a resource. **mod_authz_host** extends
   > the authorization types with **ip**, host, forward-dns and local.
 * If the above info helps you solve this issue please mark this topic as ‘resolved’.
 * dwinden
 *  Thread Starter [Sergey9999](https://wordpress.org/support/users/sergey9999/)
 * (@sergey9999)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/ban-user-error/#post-7280045)
 * Look at my settings. Is it right module which place at the top on a first screenshot?
   These link go to image online:
 * 1) [https://yadi.sk/i/bXiZFSAPr2QJn](https://yadi.sk/i/bXiZFSAPr2QJn)
    2) [https://yadi.sk/i/N4a2ovbEr2QJs](https://yadi.sk/i/N4a2ovbEr2QJs)
 * So, when i delete code (about ban users) from .htacces, site is work normal.
 * What do you think about other solutions?
 *  [dwinden](https://wordpress.org/support/users/dwinden/)
 * (@dwinden)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/ban-user-error/#post-7280046)
 * [@sergey9999](https://wordpress.org/support/users/sergey9999/)
 * No, that is not the right module. And there is only one solution.
 * Try this. Create a temporary list_loaded_modules.php file and add these 5 lines
   of code:
 *     ```
       <?php
       echo '<pre>';
       print_r(apache_get_modules());
       echo '</pre>';
       ?>
       ```
   
 * Put the list_loaded_modules.php file on your server in the public html folder.
   Then access the script like this:
 * >  [http://www.yourdomain.com/list_loaded_modules.php](http://www.yourdomain.com/list_loaded_modules.php)
 * The result should look similar to this:
 * > Array
   >  ( [0] => core [1] => http_core [2] => mod_so [3] => sapi_apache2 [4]
   > => mod_mime [5] => mod_rewrite [6] …
 * If **mod_authz_host** does not exist in the list contact your hosting provider
   and ask them to load the **mod_authz_host** module in Apache.
    Hopefully they
   will help you and make the necessary change to the Apache configuration.
 * Use the list_loaded_modules.php script to doublecheck.
 * Once the **mod_authz_host** module is loaded in Apache **don’t forget to delete
   the list_loaded_modules.php script** from your server.
 * dwinden
 *  Thread Starter [Sergey9999](https://wordpress.org/support/users/sergey9999/)
 * (@sergey9999)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/ban-user-error/#post-7280128)
 * So unfortunately our top hosting provider reply me that he have not this module
   and can not download it. Thank you for your help, and i hope this solution helps
   other people.
 * Mark as resolved.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Ban User ERROR’ 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/)

 * 6 replies
 * 2 participants
 * Last reply from: [Sergey9999](https://wordpress.org/support/users/sergey9999/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/ban-user-error/#post-7280128)
 * Status: resolved