PDA

View Full Version : What's wrong with this .htaccess file?


Joe
06-14-2002, 10:22 PM
What's wrong with this .htaccess file of mine. It is not having the desired effect of blocking a particular IP i.e. http://flower.ci.nu

order allow,deny
deny from flower.ci.nu
deny from 210.238.242.
deny from .ci.nu
allow from all

It's saved as an ascii file and resides in the folder which I want access denied to. Can someone set me in the right direction?

Joe

Terra
06-14-2002, 10:55 PM
Try:

1) Order Deny,Allow
* make sure there is on spaces except between 'Order Deny'
2) Make sure it has no CRLF in it (upload in ASCII mode)
3) Make sure there is a blank line at bottom of .htaccess

When testing Apache Access controls, make sure to toss in _your_ IP and/or Host to see instant and direct results... Once it is working for you, then pull your IP/Host entries and let it fly...

--
Terra
--Ice Fishing--
FutureQuest