Title: Apache Hack &#8211; Help required
Last modified: August 18, 2016

---

# Apache Hack – Help required

 *  [trammway](https://wordpress.org/support/users/trammway/)
 * (@trammway)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/apache-hack-help-required/)
 * Hi,
 * I wish if one of the reader here could help me giving a real quick solution for
   the below issue, I have some pages in my site which are restricted with htaccess,
   hence if any user try to access will be asked to enter the username/password.
   Same time I have some partner website who already has some pages with htaccess
   or other type of authentication, now if the cross link the pages in my site which
   are protected with htaccess is poping up the dialog box once again to my client
   site visitor. But I wanted a solution for selectively skiping the htaccess process
   for requests. Since my clients website visitors are from different IP address
   i’m really not able to allow them using IP. Again with HTTP_REFERER variable 
   also i’m sick.
 * Siva

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

 *  [scaturan](https://wordpress.org/support/users/scaturan/)
 * (@scaturan)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/apache-hack-help-required/#post-419222)
 * how is your site structured? where does WordPress and the .htaccess file(s) reside?
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/apache-hack-help-required/#post-419228)
 * mod_auth doesnt work that way, so the answer to your question is “there is no
   solution” that will allow you to **selectively** use mod_auth. You either use
   it the way it’s intended, or not at all.
 * Either provide another mechanism that password protects files (directories ARE
   files, yes they are), or ditch mod_auth, or dont store sensitive files on the‘
   net.
 * ## did you even read the op, scaturan?

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

The topic ‘Apache Hack – Help required’ is closed to new replies.

## Tags

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

 * 2 replies
 * 3 participants
 * Last reply from: [whooami](https://wordpress.org/support/users/whooami/)
 * Last activity: [19 years, 10 months ago](https://wordpress.org/support/topic/apache-hack-help-required/#post-419228)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
