Forum Moderators: phranque

Message Too Old, No Replies

Using Reg-Ex in Deny -- Possible?

         

guillermo5000

7:43 am on Jun 2, 2004 (gmt 0)

10+ Year Member



I have an expression that I use to block the ip range of 00.175.0.32 to 00.175.0.47

^00\.175\.0\.(3[2-9]¦4[0-7])$

Can I use this expression in a "Deny From" statement?

Thanks!

gergoe

9:47 am on Jun 2, 2004 (gmt 0)

10+ Year Member



Together with SetEnvIf for example, yes;
I'd rather not use regular expressions in this case; easier and more straightforward is to use a network address/subnetmask pair, like this:

Deny From 00.175.0.32/28

...which will deny access to the given ip addresses.
See [telusplanet.net...] for more details on how the 00.175.0.32/28 is calculated.

guillermo5000

5:17 pm on Jun 2, 2004 (gmt 0)

10+ Year Member



I see.. Thank you!