共享資源:檔案重命名/全域替換/防滥用过滤器

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
This page is a translated version of a page Commons:File renaming/Global replace/Abuse Filter and the translation is 100% complete. Changes to the translation template, respectively the source language can be submitted through Commons:File renaming/Global replace/Abuse Filter and have to be approved by a translation administrator.

如果您是维基媒体站点上的防滥用过滤器编者或者管理员(属于sysop用户组的用户),您很可能有权限创建防滥用过滤器,以防止个别用户提交的共享资源全域替换的编辑。你可能有多种理由这样做,例如阻止未被自动巡查的编辑。如果这些替换文件链接的编辑被阻止了,共享资源的全域替换系统将让CommonsDelinker (一个全局机器人)执行这些操作。不过,如果您能告知维基共享资源这种排除(以及这样做的原因),那将是一件好事,因为这将帮助我们更好地了解我们文件的用户,让我们可以更有效、更聪明地设计我们的软件。

如何创建这样的防滥用过滤器

简单的方式

在您的站点前往Special:AbuseFilter/import,输入以下文字,并按下导入数据按钮:

{"row":{"af_id":"148","af_pattern":"(action === 'edit')\r\n\u0026 !('autopatrol' in user_rights)\r\n\u0026 (summary rlike '^\\(\\[\\[c\\:GR\\|GR\\]\\]\\)')","af_user":"16603","af_user_text":"Rillke","af_timestamp":"20150201145938","af_enabled":"1","af_comments":"Prevent non-autopatrolled users from replacing files on this wiki.\r\nReference: https://commons.wikimedia.org/wiki/Commons:File_renaming/Global_replace/Abuse_Filter","af_public_comments":"Disallow Commons Global Replace","af_hidden":"0","af_hit_count":"2","af_throttled":"0","af_deleted":"0","af_actions":"disallow","af_global":"0","af_group":"default"},"actions":{"disallow":{"action":"disallow","parameters":[""]}}}
Ex manus

在您的站点前往Special:AbuseFilter/new,并填入以下数值:

  • 描述:
(公开可见) 阻止共享资源全域替换
  • 条件
    (action === 'edit')
    & !('autopatrol' in user_rights)
    & (summary rlike '^\(\[\[c\:GR\|GR\]\]\)')
    
  • 备注:
    Prevent non-autopatrolled users from replacing files on this wiki.
    Reference: https://commons.wikimedia.org/wiki/Commons:File_renaming/Global_replace/Abuse_Filter
    
  • ☑ 启用本过滤器
  • ☑ 阻止用户进行可疑的操作