Forum Moderators: phranque

Message Too Old, No Replies

htaccess problem

how to block a range of addresses blocked users still getting through

         

expat123

8:45 pm on Sep 18, 2005 (gmt 0)

10+ Year Member




In my htaccess file, I use the following in an attempt to block a range of addresses.

deny from #*$!.xxx.xxx.

however visitors in this range are still able to get my web site.

What am I doing wrong?

jdMorgan

3:45 am on Sep 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you do not define the Order to be applied to Allow and Deny directives, then it may not be set the way you expect. See the mod_access [httpd.apache.org] documentation, and read carefully -- Order is *very* tricky, and the words *and* and *or* must be interpreted as logical functions, and not as "conversationally-loose" words.

Also, please clarify: How are you determining whether these clients can still access your site? Are you seeing 200-OK server responses for these client requests?

Jim