Forum Moderators: open

Message Too Old, No Replies

Regex condensing

need a bit of help

         

Andrue

2:17 am on Apr 24, 2003 (gmt 0)

10+ Year Member



I am not so good at condensing to compact regex,

could someone help me do a regex for this block?

195.166.224.0 - 195.166.255.255

I have been getting nigerian scam mail lately and it seems to come from that block from what i can trace.

wilderness

2:57 am on Apr 24, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I'm not great at it either.
Jim has been both kind and gracious is sharing his experience.

I believe this is correct?

RewriteCond %{REMOTE_ADDR} ^195\.166\.2(2[4-9]¦[34][0-9]¦5[0-5])\. [OR]

If it's the only or last line omit the "[OR]
and don'f forget what the board does to the "¦" character

Don

Andrue

9:40 pm on Apr 24, 2003 (gmt 0)

10+ Year Member



great, thats a big help, i can look at that and figure out how to do them in the future.