Topic on Extension talk:AbuseFilter

L2212 (talkcontribs)

I'm trying to learn how to use the AbuseFilter, to deal with a quite annoying vandalizer on sc.wiki, but the guides Extension:AbuseFilter/Rules_format and Extension:AbuseFilter/Conditions guides are not enough for me to understand it and configure it well. For example, watching the en.wiki filters I discovered that the category for articles is "page_namespace == 0" and for user talk pages is "page_namespace == 2", but where can I find the list for all of the other kinds of pages? And what does "irlike" mean, exactly? Because I used it in a filter, but then it gave me a few false positives and I had to change it. And how can I specify not words or characters, but changes like adding multiple empty paragraphs?


To make an example, I need a filter to block edits like this one, where that same vandal has been adding empty paragraphs to an article (sometimes adding text before it, like here) but I don't know how to do it. Is there any other guide where I could read which variables are available and what all of those variables do?

Dinoguy1000 (talkcontribs)

For example, watching the en.wiki filters I discovered that the category for articles is "page_namespace == 0" and for user talk pages is "page_namespace == 2", but where can I find the list for all of the other kinds of pages?

With apologies for singling this point out, these are namespace numbers, and a full list of them can be found at w:Wikipedia:Namespace (for the English Wikipedia; you can get the list of namespaces specific to the Sardinian Wikipedia via the API). (Also, the namespace with number 2 is User, not User talk, which is instead 3 - you can remember content versus talk namespaces because content namespaces always have an even number, while talk namespaces always have an odd number.)

Ciencia Al Poder (talkcontribs)

One start point is Special:AbuseFilter/examine, where you can examine past edits and test code against it.

For empty lines, you can use \n that represents a new line. added_lines can be used to test only for the lines added/modified during the change, and write a regular expression like added_lines rlike '\n{10,}' which should match the addition of 10 or more lines in a row

Daimona Eaytoy (talkcontribs)

To add to what others said, see also: m:Small wiki toolkits/Starter kit/AbuseFilter, and w:Regular expression.

Also, while we do try to make guides easy to read and understand, one should always keep in mind that AbuseFilter is a "technical" tool. No matter how guides are simplified, they will always assume some prerequisites; at minimum, this means the basis of boolean logic and value/type comparisons; ideally, also string manipulation and regular expressions.

These concepts aren't too difficult to learn, and I always encourage people to try. However, it's very important to prevent any collateral damage while experimenting with AF. For this reason, I highly recommend avoiding to enable any filter consequence if you're not sure of the result. It shouldn't even warn the user, let alone disallow or block them.

L2212 (talkcontribs)
Reply to "Abusefilter guide"