Page 1 of 1

About spamfilter - need help to understand please

Posted: Mon Nov 08, 2004 6:02 pm
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

Posted: Mon Nov 08, 2004 6:09 pm
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...

Posted: Mon Nov 08, 2004 6:29 pm
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 ?