Recommendations:
|
IPReputation AbuseFilter variables AbuseFilter variables that allow matching against IP reputation data to take specific actions
|
TheIPReputation extension adds severalAbuseFilter variables if that extension is installed.These variables allow AbuseFilters to filter actions based on the IP reputation data for the IP being used to perform the action.These variables are marked as protected variables, which limits their use to protected filters and hides them from public view.Using these variables can help avoid the use IP addresses and IP ranges in filter conditions.
These variables are accessible for all actions performed by anonymous users andtemporary accounts.Additionally, these can be accessed for account creation of permanent accounts if they are creating their account while logged out.Account creations performed by other users and autocreations of permanent accounts are not supported by these variables.Expansion to all actions performed by permanent accounts is dependent onT234155.
As mentioned above, these variables can only be used in protected AbuseFilters.This means that only users with theabusefilter-access-protected-vars right can use these variables or see their value.Additionally, accessing the value of these variables causes a log entry and the value of the variables will expire after 3 months.
The AbuseFilter variables that currently exist are listed below:
| Description | Name | Data type | Extended details |
|---|---|---|---|
| Whether the IP being used by the user is known by the IPoid service | ip_reputation_ipoid_known | boolean | |
| Number of clients associated with IP being used by the user | ip_reputation_client_count | integer | Values are described byclient.count atdocs.spur.us. |
| List of behaviors associated with the IP being used by the user | ip_reputation_client_behaviors | array | Values are described byclient.behaviors atdocs.spur.us. |
| List of proxy services associated with IP being used by the user | ip_reputation_client_proxies | array | Values are described byclient.proxies atdocs.spur.us. |
| List of risks associated with the IP being used by the user | ip_reputation_risk_types | array | Values are described byrisks atdocs.spur.us. |
| List of tunnel operators associated with the IP being used by the user | ip_reputation_tunnel_operators | array | Values are described bytunnels atdocs.spur.us. |
All variables have the value ofnull if the action is being performed by a permanent user (except for account creation).Additionally, except forip_reputation_ipoid_known, the variables arenull ifip_reputation_ipoid_known is is nottrue.

Research was carried out into the effectiveness of this data in predicting if auser is blocked or if anedit is reverted.This research suggested that using the variables can help to better predict that an edit will be reverted, but that the variables are less useful for determining if an account would be blocked.
While the above research suggests that these variables can better predict if an edit will be reverted, an action matching these variables does not necessarily mean that the action being performed is inherently bad-faith.This is because users may be using a shared internet connection or need to use proxies to access the site.Additionally, the data may be out of date for IPs that are highly dynamic and may be reassigned to a good faith user.
We recommend:
If you have additional recommendations for using these variables, please add them to this page.