MediaWiki talk:Usernameblacklist: Difference between revisions
(→You) |
Bob Moncrief (talk | contribs) (→Suggested blacklists: new section) |
||
Line 21: | Line 21: | ||
As we're doing this, can we throw in uggs? When they turn up, my god are they annoying. --[[User:Rosslessness|I'm not the Ross UDWiki needs, ]][[User talk:Rosslessness|I'm the Ross it deserves.]] 09:16, 8 September 2012 (BST) | As we're doing this, can we throw in uggs? When they turn up, my god are they annoying. --[[User:Rosslessness|I'm not the Ross UDWiki needs, ]][[User talk:Rosslessness|I'm the Ross it deserves.]] 09:16, 8 September 2012 (BST) | ||
:Can you point me to some examples of the usernames they use? The more, the better. {{User:Aichon/Signature}} 07:33, 9 September 2012 (BST) | :Can you point me to some examples of the usernames they use? The more, the better. {{User:Aichon/Signature}} 07:33, 9 September 2012 (BST) | ||
== Suggested blacklists == | |||
In this, # = numeral, $ = letter. | |||
*J#i#a$o$ ([http://wiki.urbandead.com/index.php/Special:Contributions/J7i3avov] [http://wiki.urbandead.com/index.php/Special:Contributions/J5i1aioa] [http://wiki.urbandead.com/index.php/Special:Contributions/J1i7auov]) | |||
*Hanmei#$ ([http://wiki.urbandead.com/index.php/Special:Contributions/Hanmei0j] [http://wiki.urbandead.com/index.php/Special:Contributions/Hanmei2q] [http://wiki.urbandead.com/index.php/Special:Contributions/Hanmei9o] [http://wiki.urbandead.com/index.php/Special:Contributions/Hanmei6b]) | |||
(I may add more to this list later.) {{User:Bob Moncrief/Sig}} 13:33, 10 September 2012 (BST) |
Revision as of 12:33, 10 September 2012
Does anyone know jack about regular expressions?--Gage 18:30, 5 April 2007 (BST)
- Hello. An asterisk means "zero or more of the previous character" in a regular expression. "3*page" would block any user who wanted the string "page" in their name, which you presumably weren't intending. Wikipedia knows about regular expressions, I don't know of any better beginner guides offhand.
- I doubt this is going to be useful for anything other than blocking the numerical-username spambots, though - human vandals can just try other names until they hit one that's valid (or read this page to see what characters they need to insert to skirt the restriction). --Kevan 18:37, 5 April 2007 (BST)
- Here and here is some information on regular expression in PHP, which should be what mediawiki uses. Also, check wikipedia's Usernameblacklist for pointers on constructing these. The
(?i: )
pattern is very important, as it enables case-insensitive matching (I believe). --Brizth 19:03, 5 April 2007 (BST)
Yay Brizth! I was getting Xoid's help with it, and it is 4am his time. I'm totally clueless to tell you the truth :)--Gage 19:16, 5 April 2007 (BST)
- Just tell me what you want to blacklist and I'll see what I can do. The second one that's currently on the page should block all names that have only numbers. The first should block all threepage variants. --Brizth 19:25, 5 April 2007 (BST)
(?i:jimbo wales)? You're kidding right?--Vista 19:49, 5 April 2007 (BST)
- Copypasta! :D--Gage 19:49, 5 April 2007 (BST)
Don't forget Gold Blade! --T 03:01, 6 April 2007 (BST)
Testing
For anyone that wants to test a regular expression to make sure you got it right, head to regextester.com, click the button to selected Preg as the dialect (which is what the wiki uses), enter your expression in the first text field, and click the button for enabling the g flag. Then, in the larger text area, enter the list of all the usernames you want to catch (as well as a few you don't want to catch), with each one on a separate line. Ideally, you should see the Result section filled with all the names you didn't want to catch and none of the ones you did want to catch. For more information about the regular expression syntax, either look up a tutorial for PCRE or PREG syntax, or else consult the link provided above if you want some dry reference material. —Aichon— 16:47, 6 September 2012 (BST)
You
As we're doing this, can we throw in uggs? When they turn up, my god are they annoying. --I'm not the Ross UDWiki needs, I'm the Ross it deserves. 09:16, 8 September 2012 (BST)
- Can you point me to some examples of the usernames they use? The more, the better. —Aichon— 07:33, 9 September 2012 (BST)
Suggested blacklists
In this, # = numeral, $ = letter.
(I may add more to this list later.) Bob Moncrief EBD•W! 13:33, 10 September 2012 (BST)