Extension:AbuseFilter/ko

From MediaWiki.org
Jump to: navigation, search
미디어위키 확장 기능
Crystal Clear action run.png
AbuseFilter/ko

릴리즈 상태: 안정(stable) {{#ifeq:|nocats||[[Category:stable extensions/ko

동작 방식 사용자 행동, 특수 문서, API
사용된 훅 EditFilterMerged

GetAutoPromoteGroups
AbortMove
AbortNewAccount
ArticleDelete
LoadExtensionSchemaUpdates
RecentChange_save
ListDefinedTags
ContributionsToolLinks
UploadVerification

설명 위키 사용자들의 특정 행동을 제한할 수 있는 기능
만든이 Andrew Garrett (Werdna talk)
미디어위키 1.13+
라이선스 GPL
다운로드 스냅샷 다운로드

서브버전 [도움말]
소스 코드 보기

변수 $wgAbuseFilterAvailableActions
$wgAbuseFilterConditionLimit
$wgAbuseFilterEmergencyDisableThreshold
$wgAbuseFilterEmergencyDisableCount
$wgAbuseFilterEmergencyDisableAge
$wgAbuseFilterParserClass
$wgAbuseFilterStyleVersion
$wgAbuseFilterRestrictedActions
$wgAbuseFilterUDPPrefix
$wgAbuseFilterUDPAddress
$wgAbuseFilterUDPPort
$wgAbuseFilterCentralDB
$wgAbuseFilterIsCentral
$wgAbuseFilterBlockDuration
추가되는 권한 abusefilter-view
abusefilter-modify
abusefilter-modify-restricted
abusefilter-log
abusefilter-log-detail
abusefilter-private
abusefilter-revert
abusefilter-view-private

AbuseFilter 기능은 사용자의 특정한 행동을 기록하거나 제한할 수 있는 기능입니다.

Contents

설치 [edit]

AntiSpoof 기능이 설치되어 있어야 합니다.

AbuseFilter 설치 과정은 일반적인 확장 기능 설치 방법과 같습니다. 다음의 단계를 거쳐주세요.

  • 확장 기능을 extensions 폴더에 압축을 풉니다.
  • LocalSettings.php 마지막에 require_once( "$IP/extensions/AbuseFilter/AbuseFilter.php" );를 추가해주세요.
  • 실행에 필요한 테이블을 생성합니다. install.php나 update.php를 실행해주세요.

사용자 권한 [edit]

확장 기능을 설치한 다음, 이 기능을 어떤 권한에게 줄 지에 대해 LocalSettings.php에서 설정해야 합니다. 예를 들어, 다음의 설정은 관리자는 AbuseFilter를 자유롭게 편집할 수 있고 일반 사용자는 공개 필터를 볼 수 있도록 합니다.

$wgGroupPermissions['sysop']['abusefilter-modify'] = true;
$wgGroupPermissions['*']['abusefilter-log-detail'] = true;
$wgGroupPermissions['*']['abusefilter-view'] = true;
$wgGroupPermissions['*']['abusefilter-log'] = true;
$wgGroupPermissions['sysop']['abusefilter-private'] = true;
$wgGroupPermissions['sysop']['abusefilter-modify-restricted'] = true;
$wgGroupPermissions['sysop']['abusefilter-revert'] = true;

비공개 필터는 abusefilter-modify 권한이나 abusefilter-view-private 권한이 있는 사용자만이 볼 수 있습니다.

필터 관리 [edit]

확장 기능을 설치한 다음에는 Special:AbuseFilter에서 필터를 만들거나, 시험하거나, 변경/삭제할 수 있습니다.

설정 [edit]

변수명 기본값 설명
$wgAbuseFilterAvailableActions array( 'flag', 'throttle', 'warn', 'disallow', 'blockautopromote', 'block', 'degroup', 'tag', 'rangeblock' ) The possible actions that can be taken by abuse filters.
$wgAbuseFilterConditionLimit 1000 The maximum number of 'conditions' that can be used each time the filters are run against a change. (More complex filters require more 'conditions').
$wgAbuseFilterEmergencyDisableThreshold 0.05 Disable filters if they match more than X edits, constituting more than Y% of the last Z edits, if they have been changed in the last S seconds
$wgAbuseFilterEmergencyDisableCount 2
$wgAbuseFilterEmergencyDisableAge 86400
$wgAbuseFilterParserClass 'AbuseFilterParser' Name of AbuseFilter's parser class.
$wgAbuseFilterStyleVersion Like $wgStyleVersion, but only for this extension. Developers should bump this number every time time they change any of the .css/.js files.
$wgAbuseFilterRestrictedActions array( 'block', 'degroup' ) Users must have the "abusefilter-modify-restricted" user right as well as "abusefilter-modify" in order to create or modify filters which carry out these actions.
$wgAbuseFilterUDPPrefix 'abusefilter:' Like $wgRC2UDPPrefix, but only for AbuseFilter?
$wgAbuseFilterUDPAddress null Like $wgRC2UDPAddress, but only for AbuseFilter?
$wgAbuseFilterUDPPort null Like $wgRC2UDPPort, but only for AbuseFilter?
$wgAbuseFilterCentralDB null Name of a database where global abuse filters will be stored in.
$wgAbuseFilterIsCentral false Set this variable to true for the wiki where global AbuseFilters are stored in (if you're using global filters).
$wgAbuseFilterBlockDuration 'indefinite' Duration of blocks made by AbuseFilter

API [edit]

AbuseFilter adds two API list modules, one for details of abuse filters ("abusefilters") and one for the abuse log, since it is separate from other MediaWiki logs ("abuselog"). It is not possible to create or modify abuse filters using the API.

list = abusefilters [edit]

List information about filters

Parameters
  • abfstartid: The filter id to start enumerating from
  • abfendid: The filter id to stop enumerating at
  • abfdir: The direction in which to enumerate (older, newer)
  • abfshow: Show only filters which meet these criteria (enabled|!enabled|deleted|!deleted|private|!private)
  • abflimit: The maximum number of filters to list
  • abfprop: Which properties to get (id|description|pattern|actions|hits|comments|lasteditor|lastedittime|status|private)

When filters are private, some of the properties specified with abfprop will be missing unless you have the appropriate user rights.

Examples

List non-private abuse filters

list = abuselog [edit]

List instances where actions triggered an abuse filter.

Parameters
  • aflstart: The timestamp to start enumerating from
  • aflend: The timestamp to stop enumerating at
  • afldir: The direction in which to enumerate (older, newer)
  • afluser: Show only entries where the action was attempted by a given user or IP address.
  • afltitle: Show only entries where the action involved a given page.
  • aflfilter: Show only entries that triggered a given filter ID
  • afllimit: The maximum number of entries to list
  • aflprop: Which properties to get (ids|user|title|action|result|timestamp|details)
Example

List instances where the abuse filter was triggered in response to actions from the user "SineBot"

같이 보기 [edit]


언어: English  • 日本語 • 한국어 • русский