Need Spamfilter - Numbers Only in Realname

These are old archives. They are kept for historic purposes only.
Post Reply
sajjurocks
Posts: 2
Joined: Thu Sep 27, 2007 12:12 pm

Need Spamfilter - Numbers Only in Realname

Post by sajjurocks »

Hello,
i need help with spamfilter regex ..
i want to block users having numbers only in realname ..
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Re: Need Spamfilter - Numbers Only in Realname

Post by Jobe »

/spamfilter add u block - GECOS_must_contain_non-digits :\d+$

Should do it.
Your IP: Image
Your Country: Image
sajjurocks
Posts: 2
Joined: Thu Sep 27, 2007 12:12 pm

Re: Need Spamfilter - Numbers Only in Realname

Post by sajjurocks »

Thanks Alot :)
Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Re: Need Spamfilter - Numbers Only in Realname

Post by Jason »

Jason!Jason@host:No:1

BLOCKED.
Why the hell can't my signature be empty?
"Your message contains too few characters."
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Re: Need Spamfilter - Numbers Only in Realname

Post by Jobe »

Jason, ideally that probably shouldnt be blocked (since the real name is "No:1"), but anyway here's a regex that should prevent that blocking.

@[^:]+:\d+$

Unless of course you look at the following mask:
Jobe!jobe@hos:Jobe @ here No:1

In which case youd be better off working with a full regex like this:
^[^!]+![^@]+@[^:]+:\d+$
Your IP: Image
Your Country: Image
Jason
Posts: 570
Joined: Mon Jun 14, 2004 5:09 pm

Re: Need Spamfilter - Numbers Only in Realname

Post by Jason »

The last filter I'll have no problem with.
Why the hell can't my signature be empty?
"Your message contains too few characters."
Post Reply