How to configure .htaccess ? Deny public access to current/special directory and below ?

This is a discussion on How to configure .htaccess ? Deny public access to current/special directory and below ? within the Windows Web Servers forums, part of the Web Server and Related Forums category; I want to deny/disallow the public access to the directory ....\public_html\aaa\ and its sub directories e.g ....\public_html\...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2007
Peter Ballmer
 
Posts: n/a
Default How to configure .htaccess ? Deny public access to current/special directory and below ?

I want to deny/disallow the public access to the directory

....\public_html\aaa\

and its sub directories e.g

....\public_html\aaa\bbb\

As far as I know this can be setup by editing the .htaccess file in the directory

....\public_html\aaa\

How do I do this? What do I have to enter to achieve the restrictions?

Is there one single .htaccess file for the whole directory tree (beginning with

....\public_html\

or can I put .htaccess files with higher priority into each sub directory?

My current (default) .htaccess file is (assuming testtest.com is my domain):

---
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.testtest.com
AuthUserFile /home/testtest/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/testtest/public_html/_vti_pvt/service.grp
---

Peter
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:19 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0