Re: htaccess files and denying IP addresses.

by Ezra S Freelove <esfreelo(at)valdosta.edu>

 Date:  Sat, 12 May 2001 11:09:00 -0400 (EDT)
 To:  Mike Taylor <lonewolf(at)one.net>
 Cc:  hwg-techniques(at)hwg.org
 In-Reply-To:  oemcomputer
  todo: View Thread, Original
Mike,

This is very strange. Since you are using .htaccess files, are you using
Apache? It might be the case that on the old server AllowOverride was set
to "All" and AllowOverride is now set to "None".

An alternative to changing the AllowOverride is to locate the correct
<Directory> statement in httpd.conf and place your global statements
there. 

Here is the Apache web site documentation on <Directory>

	http://httpd.apache.org/docs/mod/core.html#directory

Ezra Freelove
esfreelo(at)valdosta.edu
http://www.valdosta.edu/~esfreelo/



On Fri, 11 May 2001, Mike Taylor wrote:

> I've used .htaccess files for denying IP's to certain directories for
> several years.  If I want to globally deny the entire site, I've simply
> placed the .htaccess file in the root directory, and it carries over into
> other directories.
> 
> A curious thing is happening on my new server that I can't figure out.  I
> don't have any htaccess files on the server except in the root directory.
> As before, I expected the deny line to carry over to all subdirectories.
> This time, however, it did not.  It only denies the IP from accessing pages
> within that one folder.
> 
> Anyone have an explanation as to why?  Perhaps I'm not remembering this
> correctly, but I thought htaccess files affect directories recursively below
> it, unless those subdirectories have htaccess files of their own (which, in
> my case, they do not).
> 
> Thanks,
> Mike
> 
> 


Ezra Freelove		
Computer Support Specialist, Assistant Webmaster
Information Technology              229-333-5974
Valdosta State University         ICQ   41079071
esfreelo(at)valdosta.edu
http://www.valdosta.edu/~esfreelo/

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.