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 02:14, 8 January 2025 by Louis
Basic information
Notes:
# AbuseFilter Rule Notes


## Purpose
This rule prevents users with fewer than 50 total edits from posting URLs (external links) in the User Talk namespace. This restriction is designed to minimize spam and inappropriate behavior from new or unverified users.
## Rule Explanation
### `page_namespace == 3`
- **What it does:** Limits the filter to edits made in the User Talk namespace.
- **How to modify:**
  - To apply the rule to a different namespace, replace `3` with the namespace index of your choice.
  - Example: `page_namespace == 2` applies to the User namespace.
### `added_links > 0`
- **What it does:** Checks if the edit adds any external links (URLs).
- **How to modify:**
  - To apply the rule to edits with a specific number of added links, change the number.
  - Example: `added_links > 2` only triggers for edits adding more than two links.
### `user_editcount < 50`
- **What it does:** Ensures the filter only applies to users who have fewer than 50 total edits on the wiki.
- **How to modify:**
  - To change the required edit threshold, replace `50` with a different number.
  - Example: `user_editcount < 100` requires at least 100 edits before the restriction is lifted.
### Logical Operators
- **`&` (AND):** Combines conditions; all conditions must be true for the rule to trigger.
  - Example: If `page_namespace == 3` AND `added_links > 0`, both must be true for the rule to activate.
### Summary of What the Rule Does
1. Checks if the edit is being made in the User Talk namespace (`page_namespace == 3`).
2. Verifies if the edit adds at least one external link (`added_links > 0`).
3. Confirms that the user making the edit has fewer than 50 total edits (`user_editcount < 50`).
4. If all these conditions are met, the filter triggers and prevents the edit.
## How to Adjust the Rule
1. **Change Namespace:**
  - Replace `3` in `page_namespace == 3` with the namespace index where you want the rule to apply.
  - Reference: Namespace index values are listed in MediaWiki documentation.
2. **Adjust URL Restriction:**
  - Modify the number in `added_links > 0` to require more or fewer links before triggering.
3. **Change Edit Count Requirement:**
  - Update the `50` in `user_editcount < 50` to increase or decrease the threshold for user experience.
## Practical Examples
- **Prevent all users from adding links to User namespace:**
  ```plaintext
  page_namespace == 2 & added_links > 0
```
- **Allow only users with at least 100 edits to add links:**
  ```plaintext
page_namespace == 3 & added_links > 0 & user_editcount < 100
```
Filter conditions
Conditions:
page_namespace == 3 & added_links > 0
/* Block users with less than 50 edits from posting URLs in their own user talk namespace */
page_namespace == 3 &         /* Restrict to user talk namespace */
added_links > 0 &            /* Check if URLs are being added */
user_editcount < 50          /* Block users with less than 50 edits */
Actions to take when matched
Actions to take when matched
Block autopromote
Block autopromote
Disallow: abusefilter-disallowed
Disallow: suspicious URLs detected on talk page
Tag: url in profile
Warn: abusefilter-warning