Edit filter configuration

Differences between versions

ItemVersion from 12:30, 10 October 2020 by The AnomeVersion from 16:58, 24 August 2022 by The Anome
Basic information
Notes:
Checking for excessive internal repetition of _any_ three-character string for now, to catch usernames like those checked for in filter 886. This is a common feature of some types of long-term username abuse.
Checking for excessive internal repetition of _any_ three-character string for now, to catch usernames like those checked for in filter 886. This is a common feature of some types of long-term username abuse.


Add `!('override-antispoof' in user_rights)` so this can be bypassed if and when needed (ACC concern?) --TNT 14th Nov 2017
Add `!('override-antispoof' in user_rights)` so this can be bypassed if and when needed (ACC concern?) --TNT 14th Nov 2017


After yet more run-time, this seems to be doing well at catching LTA/potentially disruptive usernames, with no false positives so far. I think we can probably leave this to run indefinitely without any further problems. --  The Anome
After yet more run-time, this seems to be doing well at catching LTA/potentially disruptive usernames, with no false positives so far. I think we can probably leave this to run indefinitely without any further problems. --  The Anome


The LTA seems to have gone away for now, but this filter still seems to be doing a great job of catching potentially disruptive usernames with essentially no false-positives, so I'm keeping it enabled. -- The Anome, 26 November 2017
The LTA seems to have gone away for now, but this filter still seems to be doing a great job of catching potentially disruptive usernames with essentially no false-positives, so I'm keeping it enabled. -- The Anome, 26 November 2017


Now does both four repetitions of three and three repetitions of four. -- The Anome, 1 March 2018
Now does both four repetitions of three and three repetitions of four. -- The Anome, 1 March 2018


Re discussion on [[Wikipedia talk:Edit filter]], now triggers on four repetitions of four, or five repetitions of three, OR five _successive_ repetitions of a character pair (10 characters of repetition), thus detecting, for example, "aaaaaaaaaa" or "ababababab". It also now uses [[MediaWiki:Abusefilter-disallowed-repetitious-username]] as warning message. -- The Anome, 3 April 2018
Re discussion on [[Wikipedia talk:Edit filter]], now triggers on four repetitions of four, or five repetitions of three, OR five _successive_ repetitions of a character pair (10 characters of repetition), thus detecting, for example, "aaaaaaaaaa" or "ababababab". It also now uses [[MediaWiki:Abusefilter-disallowed-repetitious-username]] as warning message. -- The Anome, 3 April 2018


Getting very slightly more aggressive by also adding four _successive_ repetitions of a character triple, (12 characters of repetition, eg. "blablablabla") and three _successive_ repetitions of four (12 characters of repetition, eg "asdfasdfasdf") This should catch more valid cases, but I believe should not catch any of the false positives discussed earlier. -- The Anome, 8 May 2018
Getting very slightly more aggressive by also adding four _successive_ repetitions of a character triple, (12 characters of repetition, eg. "blablablabla") and three _successive_ repetitions of four (12 characters of repetition, eg "asdfasdfasdf") This should catch more valid cases, but I believe should not catch any of the false positives discussed earlier. -- The Anome, 8 May 2018


See also the experimental filter 890, which attempts to spot nonsensical usernames which are not caught by this filter. -- The Anome, 22 June 2018
See also the experimental filter 890, which attempts to spot nonsensical usernames which are not caught by this filter. -- The Anome, 22 June 2018


rm redundant warning --SoY 4 Mar 2019
rm redundant warning --SoY 4 Mar 2019


Deal properly with undefined user_rights. See [[phab:T230256]] and [[Special:PermaLink/922329559#Add exception to edit filter 890 for account creators]]. --Suffusion of Yellow 01:16 22 Oct 2019
Deal properly with undefined user_rights. See [[phab:T230256]] and [[Special:PermaLink/922329559#Add exception to edit filter 890 for account creators]]. --Suffusion of Yellow 01:16 22 Oct 2019
Handling autocreation of accounts as well - The Anome, 24 August 2022
Filter conditions
Conditions:
(documentation)
action == "createaccount" &
(action == "createaccount" |
action == "autocreateaccount")
&
(
(
     user_rights ? /* T230256 workaround */
     user_rights ? /* T230256 workaround */
         !('override-antispoof' in user_rights) :
         !('override-antispoof' in user_rights) :
         true
         true
) & (
) & (
   lcase(accountname) rlike "(...).*\1.*\1.*\1.*\1" |
   lcase(accountname) rlike "(...).*\1.*\1.*\1.*\1" |
   lcase(accountname) rlike "(....).*\1.*\1.*\1" |
   lcase(accountname) rlike "(....).*\1.*\1.*\1" |
   lcase(accountname) rlike "(..)\1\1\1\1" |
   lcase(accountname) rlike "(..)\1\1\1\1" |
   lcase(accountname) rlike "(...)\1\1\1" |  
   lcase(accountname) rlike "(...)\1\1\1" |  
   lcase(accountname) rlike "(....)\1\1"  
   lcase(accountname) rlike "(....)\1\1"  
)
)