.htaccess: denying access using advanced rules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm new to .htaccess. I'd like to do the following:
I'd like to disallow all requests for all files and subdirectories in a
certain directory, except for the index file (index.pl) for that one
directory (not for the subdirectories). I'd also prefer if the index.pl
file could still be accessed as the directory index.
Also, that file should only be accessible if HTTP request header
X-Client has a value of MW.
I don't understand how to accomplish this.

Thanks,
Frederik Vanderstraeten

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux