MediaWiki talk:Abusefilter: Difference between revisions

From Skyscraper Wiki
Latest comment: 16 March by Elevator1512 in topic New Filter Issues
Jump to navigation Jump to search
(→‎New Filter Issues: new section)
 
 
Line 24: Line 24:


I'd like to implement the filter soon, which I've temporarily disabled for debugging purposes. [[User:Elevator1512|Elevator1512]] ([[User talk:Elevator1512|talk]]) 22:09, 15 March 2024 (CDT)
I'd like to implement the filter soon, which I've temporarily disabled for debugging purposes. [[User:Elevator1512|Elevator1512]] ([[User talk:Elevator1512|talk]]) 22:09, 15 March 2024 (CDT)
:I fixed the issue by changing <code>action == "create"</code> to <code>action == "edit"</code>. Let me know if the filter needs to be edited more! [[User:Elevator1512|Elevator1512]] ([[User talk:Elevator1512|talk]]) 10:20, 16 March 2024 (CDT)

Latest revision as of 09:20, 16 March 2024

New Filter Issues[edit source]

I'm currently working on the 7 days / 20 edits restriction to prevent most spam page creations while making exceptions for trusted IP addresses that have made good-faith page contributions. A test was done at Simple - Concord and the filter didn't pick up the IP action even though it created a page and was not in the trusted IP list. Here's what the code looks like, if there's any issues:

!contains_any(user_groups, "sysop", "bot") &

(

action == "create" &

page_namespace == 0 &

page_age == 0 &

user_age < 604800 & /* in seconds = 7 * 24 * 60 * 60 */

user_editcount < 20 &

!ip_in_range(user_name, "2601:983:281:2160:0:0:0:0/64")

)

I'd like to implement the filter soon, which I've temporarily disabled for debugging purposes. Elevator1512 (talk) 22:09, 15 March 2024 (CDT)Reply[reply]

I fixed the issue by changing action == "create" to action == "edit". Let me know if the filter needs to be edited more! Elevator1512 (talk) 10:20, 16 March 2024 (CDT)Reply[reply]