RE: Directory hiding

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

 



From: Hugh E Cruickshank Sent: September 16, 2008 15:32
> From: Sean Conner Sent: September 15, 2008 23:36
> > It was thus said that the Great Hugh E Cruickshank once stated:
> > > 
> > > That may be the case but their recommendation is still: Issue a
> > > "404 - Not Found" response status code for a forbidden resource,
> > > or remove it completely.
> > 

[snip]

> > But, if you want to do it, then you'll need to do the following 
> > *for every directory under your webroot*:
> > 
> > 	RedirectMatch 404 ^/$
> > 	RedirectMatch 404 ^/path$
> > 	RedirectMatch 404 ^/path/$
> > 	RedirectMatch 404 ^/path/to$
> > 	RedirectMatch 404 ^/path/to/$
> > 	RedirectMatch 404 ^/path/to/directory$
> > 	RedirectMatch 404 ^/path/to/directory/$
> > 
> [snip]
> 
> I will give that a shot tonight.
> 

That worked like a charm.

Much thanks to all who replied.

Regards, Hugh

-- 
Hugh E Cruickshank, Forward Software, www.forward-software.com 

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