[Wolves] .htaccess files(was my own personal web server)

Stuart Langridge sil at kryogenix.org
Fri Dec 3 08:17:03 GMT 2004


Baza wrote:
> OK, my web server is almost ready to go live. What I want to know now is I
> want to put together an .HTACCESS file to block some domains and IP
> addresses from my site. Whats the format for this? Do I just make a text
> file, call it something like filter.htaccess and format like this ..
> 
> Deny from suchandsuch.co.uk
> Deny from thisandthat.org
> 
> Will that work?

If it's your own server, I'd do it in the Apache configuration files, 
not in .htaccess (which, as far as I know, has to be called .htaccess, 
not anythingyouwant.htaccess). That Deny statement should work, but 
it'll require a DNS lookup on everyone using your site...why not use IP?

Aq.



More information about the Wolves mailing list