Please note that all submissions to the site are subject to the wiki's licence, CC 4.0 BY-SA, as found here

Abuse filter management

From Consumer Action Taskforce
Abuse Filter navigation (Home | Recent filter changes | Examine past edits | Abuse log)
Jump to navigationJump to search

Differences between versions

ItemVersion from 05:11, 3 January 2025 by LouisVersion from 05:14, 14 January 2025 by Louis
Basic information
Notes:
This filter blocks edits that add links to user pages. Links on user pages are almost always spam.
NOTES SECTION:
This rule monitors and controls link additions on user talk pages. Here's a complete breakdown:
WHAT THE RULE DOES:
 
It checks when someone adds links to user talk pages
It ONLY applies to editors who are NOT in the bot, sysop, or autoconfirmed groups
If someone from those trusted groups adds links, the rule is skipped entirely
For everyone else, the rule will trigger if they add any links at all to a user talk page
 
HOW IT WORKS:
 
It uses the "not" symbol (!) to reverse the group membership check
It looks at three different groups (bot, sysop, autoconfirmed) and checks if the editor is in ANY of them using the "or" symbol (|)
Then using the "and" symbol (&), it checks two conditions:
 
Is this edit happening on a user talk page? (page_namespace == 2)
Did they add any links? (added_links > 0)
 
 
The rule only triggers if the editor is not in any trusted groups AND they're editing a user talk page AND they added links
 
HOW TO EDIT THE RULE:
Even if you've never coded before, you can modify this rule. Here's how:
TO CHANGE WHICH GROUPS ARE TRUSTED:
 
Find the section between !( and )
Each group name must be in single quotes, like 'bot'
Add new groups by copying this pattern: 'groupname' in user_groups
Put a | symbol between each group
Example: To add 'moderator' as a trusted group, add:
'moderator' in user_groups |
Make sure the last group doesn't have a | after it
 
TO CHANGE WHICH PAGES ARE MONITORED:
 
Find where it says: page_namespace == 2
The number 2 means user talk pages
You can use these numbers instead:
0 = main/article pages
1 = talk pages
2 = user talk pages
3 = user pages
4 = project pages
 
TO CHANGE HOW MANY LINKS TRIGGER THE RULE:
 
Find: added_links > 0
Change the 0 to any number you want
Examples:
added_links > 3    (triggers on 4 or more links)
added_links == 5  (triggers on exactly 5 links)
added_links >= 2  (triggers on 2 or more links)
added_links < 10  (triggers on less than 10 links)
added_links <= 5  (triggers on 5 or fewer links)
 
IMPORTANT SYMBOLS:
! = not (reverses what comes after it)
& = and (both conditions must be true)
| = or (either condition can be true)
== = equals exactly
 
= greater than
= = greater than or equal to
< = less than
<= = less than or equal to
 
Remember: When joining conditions, & means both sides must be true, while | means either side can be true. Always keep the basic structure of the rule intact - just change the specific values you need to modify.
Filter conditions
Conditions:
page_namespace == 2 & added_links > 0
/* This filter checks edit actions in user talk pages, except for trusted users */
 
/* Check if user is NOT in any trusted groups using boolean operations:
  ! means "not"
  in means "is found in the array"
  | means "or" */
!(
    'bot' in user_groups |
    'sysop' in user_groups |
    'autoconfirmed' in user_groups
)
/* AND (&) check if all these conditions are true: */
& (
    /* Check if we're in user talk namespace (which is namespace 2) */
    page_namespace == 2
    /* AND check if links were added (more than 0 links) */
    & added_links > 0
)