Deny access to all directories named "CVS"?

This is a discussion on Deny access to all directories named "CVS"? within the Apache Web Server forums, part of the Web Server and Related Forums category; Can someone give an example of how to deny access to all directories named "CVS" that may exist ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-01-2004
Jamie Jackson
 
Posts: n/a
Default Deny access to all directories named "CVS"?

Can someone give an example of how to deny access to all directories
named "CVS" that may exist in a site using a single .htaccess in the
site's root?

If it's also possible to specify that this particular directive is not
to be overriden by nested .htaccess files, it would be helpful to know
how to do that, too.

Thanks,
Jamie
  #2 (permalink)  
Old 04-01-2004
Jamie Jackson
 
Posts: n/a
Default Re: Deny access to all directories named "CVS"?

On Thu, 01 Apr 2004 14:26:06 -0500, Jamie Jackson
<mcsqueebagePleaseDontSpamMe@hotmail.com> wrote:

>Can someone give an example of how to deny access to all directories
>named "CVS" that may exist in a site using a single .htaccess in the
>site's root?
>
>If it's also possible to specify that this particular directive is not
>to be overriden by nested .htaccess files, it would be helpful to know
>how to do that, too.
>
>Thanks,
>Jamie


Got the first part solved with:

<Directory ~ ".*/CVS">
Options None
AllowOverride None
Order allow,deny
Deny from all
</Directory>

Could still use help in preventing this directive from being
overridden.

Thanks,
Jamie

  #3 (permalink)  
Old 04-02-2004
Davide Bianchi
 
Posts: n/a
Default Re: Deny access to all directories named "CVS"?

Jamie Jackson <mcsqueebagePleaseDontSpamMe@hotmail.com> wrote:
> Can someone give an example of how to deny access to all directories
> named "CVS" that may exist in a site using a single .htaccess in the
> site's root?


....can't you just DELETE those directories? What are
those there for?
A nice find . -type d -name "CVS" -exec rm -fr {} \; looks
faster.

Davide

--
| It is easier to get forgiveness than permission.
|
|
|
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB 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 06:18 PM.


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