Warning for links in PM's

These are old archives. They are kept for historic purposes only.
Post Reply
j0nas
Posts: 4
Joined: Thu Sep 05, 2013 12:19 pm

Warning for links in PM's

Post by j0nas » Thu Sep 05, 2013 12:26 pm

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
irs is just multiplayer notepad

Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Re: Warning for links in PM's

Post by Stealth » Fri Sep 06, 2013 4:43 am

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.

j0nas
Posts: 4
Joined: Thu Sep 05, 2013 12:19 pm

Re: Warning for links in PM's

Post by j0nas » Fri Sep 06, 2013 10:08 am

Many thanks..

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

Post Reply