Title: Apache Authorisation and Wordfence (includes solution)
Last modified: August 21, 2016

---

# Apache Authorisation and Wordfence (includes solution)

 *  [edradour](https://wordpress.org/support/users/edradour/)
 * (@edradour)
 * [12 years ago](https://wordpress.org/support/topic/apache-authorisation-and-wordfence-includes-solution/)
 * Hello
    I use a .htaccess file in my wp-admin directory to help restrict access
   to this area
 * Wordfence uses an admin-ajax.php file that is stored in wp-admin to track human
   visitors to the site.
 * The combination was popping up an authorisation dialog for casual visitors on
   every page … here is a suggested solution
 *     ```
       AuthType Basic
       AuthName .restricted.
       # (Following line is/should be optional)
       AuthBasicProvider file
       AuthUserFile /path/to/authorised/user/file
       Order Deny,Allow
       Deny from all
       Require valid-user
   
       # Begin Wordfence exception <<-- -
       <Files admin-ajax.php>
               allow from all
       </Files>
       # End Wordfence exception <<-- -
   
       Satisfy any
       ```
   
 * HTH
 * [https://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)

The topic ‘Apache Authorisation and Wordfence (includes solution)’ is closed to 
new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

## Tags

 * [apache](https://wordpress.org/support/topic-tag/apache/)
 * [authorisation](https://wordpress.org/support/topic-tag/authorisation/)

 * 0 replies
 * 1 participant
 * Last reply from: [edradour](https://wordpress.org/support/users/edradour/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/apache-authorisation-and-wordfence-includes-solution/)
 * Status: not a support question