Page 1 of 1

Warning for links in PM's

Posted: Thu Sep 05, 2013 12:26 pm
by j0nas
Hi Guys,

I've added the following spamfilter warns to our network

Code: Select all

/spamfilter add p warn 0 Possible_Spam_Links_in_PM www.*

Code: Select all

/spamfilter add p warn 0 Possible_Spam_Links_in_PM irc.*
But I am getting the following hits;

Code: Select all

[13:19] -irc.ukchatters.co.uk- [Spamfilter] m0rpheus!male@IPHIDDEN matches filter 'www.*': [PRIVMSG Neo: 'awww'] [Possible Spam Links in PM]
Any idea on how I can prevent these false positives?

Thanks

Re: Warning for links in PM's

Posted: Fri Sep 06, 2013 4:43 am
by Stealth
Spamfilters use regex matching and not standard wildcards. With those spamfilters, you're telling Unreal to warn you about a message containing "irc" or "www" ANYWHERE in the message, including in the middle of a word regardless of any content before or after.

I would recommend using the regex irc\..+\..+ and www\..+\..+ for just general web or IRC server matching.

For more information about regex and how to use it, the Regular Expressions section of the docs is a good place to start.

Re: Warning for links in PM's

Posted: Fri Sep 06, 2013 10:08 am
by j0nas
Many thanks..

I kinda half thought it might be the need for irc\..+\..+ but could not think for the love of me.