View previous topic :: View next topic |
Author |
Message |
Sacles
Joined: 09 Nov 2007 Posts: 51 Location: Belgium (near Li?ge)
|
Posted: Sat Apr 05, 2008 10:34 am Post subject: How to create a black rule |
|
|
Hello,
How can I create a black rule which would find a link to an executable file in the body of a message?
Thanks for your reply. |
|
Back to top |
|
|
vetaltm Author
Joined: 05 Feb 2006 Posts: 750
|
Posted: Sat Apr 05, 2008 12:09 pm Post subject: |
|
|
This condition will search for the links to *.exe, *.dll or *.scr files in message body:
Code: | Body =~ (?:https?|ftp):\/\/\S{1,200}\.(?:exe|dll|scr) |
The rule with described condition will recognize both HTML and plain text messages, containing the links with specified protocol, e.g.:
http://antispamsniper.com/module.exe
ftp://antispamsniper.com/module.dll
The plug-in will not block the messages from whitelisted senders and recognized by other white methods. |
|
Back to top |
|
|
Sacles
Joined: 09 Nov 2007 Posts: 51 Location: Belgium (near Li?ge)
|
Posted: Sat Apr 05, 2008 12:36 pm Post subject: |
|
|
Thanks, that works fine. |
|
Back to top |
|
|
|