Forum Moderators: phranque

Message Too Old, No Replies

Format for IP Deny

Need clarification on use of wildcard

         

Angonasec

5:31 am on Dec 22, 2003 (gmt 0)



In my account root .htaccess file I block an IP using this format:

deny from 123.45.*
deny from 1.23.45.67

But I've noticed that despite having, deny from 123.45.* visitors still get through from, for example:
123.45.67.89

My logs show they receive a 200 instead of a 403.

Should I be using a different blocking format, such as:

deny from 123.45.*.*
or:
deny from 123.45*

Ta!

closed

6:12 am on Dec 22, 2003 (gmt 0)

10+ Year Member



I think what you want is something like this:

deny from 123.45

You can read more about it here:
mod_access [httpd.apache.org]

jomaxx

6:12 am on Dec 22, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Don't use the wildcard symbol at all:

deny from 123.45.

Angonasec

2:58 am on Dec 25, 2003 (gmt 0)



Thank you, the version *with* the final full stop seems to be the correct method according to the blurb.

I'll try it, and see.

(I have to wait for the evil doers to attempt access to discover if it's effective.)

Ta!