На Mon, 03 Aug 2009 09:52:41 -0400 Evan Prodromou написа:
>> Regarding the first line, $nicknamePatterns = array 
>> <http://www.php.net/array>('^11', 'jerk'); does the caret (^) mean a 
>> wildcard so any nickname with the number 11 anywhere will be
>> blacklisted?
>No, it means "starts with '11'".

 As these spam registrations are with "11" in the beginning and "99" at
 the end, I used the following:

 $nicknamePatterns = array('^11.*99$');

 And it worked like a charm.

 Otherwise it would block all new nicknames starting with "11", which
 is not what we want here.

 It looks like it's some kind of bot and for now all nicknames are
 ^11.*99$ but if the bot changes it's settings, one could easily add
 new regexps to the array.

 Thanks for the solution, Evan! Though I'm sure we'll need some serious
 antispam solutions for Laconica sites, really soon...

 Yasen
 http://plasr.com

-- 
| Yasen Pramatarov
|        a.k.a. turin
| home: http://yasen.lindeas.com
| jabberID: xmpp:[email protected]
| http://lindeas.com - working on gnu/linux ideas

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Laconica-dev mailing list
[email protected]
http://mail.laconi.ca/mailman/listinfo/laconica-dev

Reply via email to