About spamfilter - need help to understand please

These are old archives. They are kept for historic purposes only.
Post Reply
starsky
Posts: 2
Joined: Mon Nov 08, 2004 5:57 pm

About spamfilter - need help to understand please

Post by starsky »

Hi all :)

I just begin to use spamfilter.conf to make this BIP spam stop.

i received some public channel message like :

<me_pt> http://81.76.4.56:63444/tcu.exe
<me_pt> http://81.76.4.56:63444/.exe
http://81.76.4.56:63444/hh.exe

somebody could explain me how make a spamfilter block for this example please ??

Thanks ;)
StArSkY - Neoxys Network
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

Command:

Code: Select all

/SPAMFILTER ADD c block - - ^http://81\.76\.4\.56:63444/(.*)\.exe$

Or config block:

Code: Select all

spamfilter {
    regex "^http://81\.76\.4\.56:63444/(.*)\.exe$";
    target {
        channel;
    };
};

Basically you just have to escape "." because "." stands for "any character".
"*" means 0 or n repetitions of the preceding character.
"^" means beginning of the line
"$" end of the line


But you may better read a Regular Expression Tutorial...
starsky
Posts: 2
Joined: Mon Nov 08, 2004 5:57 pm

Post by starsky »

okey, and there is no way to make a spamfilter which include an IP who must be anyelse ip ?

and what is the meaning of regex please ?
Post Reply