View previous topic :: View next topic |
Author |
Message |
Sacles
Joined: 09 Nov 2007 Posts: 51 Location: Belgium (near Li?ge)
|
Posted: Sun Apr 27, 2008 7:03 am Post subject: Intervals IP |
|
|
Hello,
With a black rule (or an other means), can I block a mail with an IP situated in an interval.
For example, between 92.80.0.0 and 92.82.255.255
In advance, thanks for your reply.
Regards. |
|
Back to top |
|
|
vetaltm Author
Joined: 05 Feb 2006 Posts: 751
|
Posted: Mon Apr 28, 2008 6:54 pm Post subject: |
|
|
Here is a rule for blocking the messages having in headers IP from the interval 92.80.0.0 - 92.82.255.255:
Code: | Header{Received} =~ 92\.80\.\d{1,3}\.\d{1,3} |
\d{1,3} matches a sequence of 1 to 3 digits
\. - quoted "." |
|
Back to top |
|
|
Sacles
Joined: 09 Nov 2007 Posts: 51 Location: Belgium (near Li?ge)
|
Posted: Tue Apr 29, 2008 3:23 am Post subject: |
|
|
Hello,
Thanks, but in 92\.80\.\d{1,3}\.\d{1,3}, I do not see where are the numbers between 80 and 82 (92.80.0.0 - 92.82.255.255)
Perhaps three strong conditions?
92\.80\.\d{1,3}\.\d{1,3}
92\.81\.\d{1,3}\.\d{1,3}
92\.82\.\d{1,3}\.\d{1,3}
Regards. |
|
Back to top |
|
|
vetaltm Author
Joined: 05 Feb 2006 Posts: 751
|
Posted: Tue Apr 29, 2008 4:50 am Post subject: |
|
|
Sacles wrote: | Hello,
Thanks, but in 92\.80\.\d{1,3}\.\d{1,3}, I do not see where are the numbers between 80 and 82 (92.80.0.0 - 92.82.255.255)
Perhaps three strong conditions?
92\.80\.\d{1,3}\.\d{1,3}
92\.81\.\d{1,3}\.\d{1,3}
92\.82\.\d{1,3}\.\d{1,3}
|
Sorry, I didn't notice "2". It is still possible to use only one condition:
Header{Received} =~ 92\.8[0-2]\.\d{1,3}\.\d{1,3} |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|