Extension:AbuseFilter/ko
|
AbuseFilter/ko 릴리즈 상태: 안정(stable) {{#ifeq:|nocats||[[Category:stable extensions/ko |
|
|---|---|
| 동작 방식 | 사용자 행동, 특수 문서, API |
| 사용된 훅 | EditFilterMerged GetAutoPromoteGroups |
| 설명 | 위키 사용자들의 특정 행동을 제한할 수 있는 기능 |
| 만든이 | 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에서 필터를 만들거나, 시험하거나, 변경/삭제할 수 있습니다.
- The rules format
- Actions
- 위키백과에서 필터를 가져오려면 w:Special:AbuseFilter에서 가져오려는 필터(예제: w:Special:AbuseFilter/3)를 선택한 다음, "이 필터를 다른 위키로 내보내기"("Export this filter to another wiki")를 눌러주세요. 거기에 나오는 문장을 복사한 다음 Special:AbuseFilter/import에 붙여넣으면 됩니다.
설정 [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 fromabfendid: The filter id to stop enumerating atabfdir: 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 listabfprop: 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
| Result |
|---|
| The following content has been placed in a collapsed box for improved usability. |
<api> <query> <abusefilters> <filter id="1" hits="867" /> <filter id="3" hits="66110" /> <filter id="5" hits="464" /> <filter id="6" hits="19" /> <filter id="8" hits="7" /> <filter id="9" hits="24869" /> <filter id="11" hits="10033" /> <filter id="14" hits="63" /> <filter id="15" hits="15" /> <filter id="16" hits="44" /> </abusefilters> </query> <query-continue> <abusefilters abfstartid="18" /> </query-continue> </api> |
| The above content has been placed in a collapsed box for improved usability. |
list = abuselog [edit]
List instances where actions triggered an abuse filter.
- Parameters
aflstart: The timestamp to start enumerating fromaflend: The timestamp to stop enumerating atafldir: 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 IDafllimit: The maximum number of entries to listaflprop: 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"
| Result |
|---|
| The following content has been placed in a collapsed box for improved usability. |
<api> <query> <abuselog> <item id="900937" filter_id="211" user="SineBot" result="" /> <item id="888404" filter_id="211" user="SineBot" result="" /> <item id="862751" filter_id="211" user="SineBot" result="" /> <item id="855649" filter_id="211" user="SineBot" result="" /> <item id="842429" filter_id="211" user="SineBot" result="" /> <item id="840958" filter_id="1" user="SineBot" result="" /> <item id="824151" filter_id="211" user="SineBot" result="" /> <item id="804892" filter_id="211" user="SineBot" result="" /> <item id="205254" filter_id="58" user="SineBot" result="disallow" /> <item id="205252" filter_id="58" user="SineBot" result="disallow" /> </abuselog> </query> <query-continue> <abuselog aflstart="2009-04-19T02:07:55Z" /> </query-continue> </api> |
| The above content has been placed in a collapsed box for improved usability. |
같이 보기 [edit]
| 이 확장 기능은 위키미디어 위키 사이트에서 사용하고 있습니다. 즉, 이 기능은 대형 사이트에서 사용해도 될 정도의 안정성을 가지고 있습니다. 특정한 위키에서 사용하고 있는 확장 기능의 목록을 보려면 해당 위키의 Special:Version 문서를 확인해주세요. |
| 언어: | English • 日本語 • 한국어 • русский |
|---|
- User activity extensions/ko
- Special page extensions/ko
- API extensions/ko
- EditFilterMerged extensions/ko
- GetAutoPromoteGroups extensions/ko
- AbortMove extensions/ko
- AbortNewAccount extensions/ko
- ArticleDelete extensions/ko
- LoadExtensionSchemaUpdates extensions/ko
- RecentChange save extensions/ko
- ListDefinedTags extensions/ko
- ContributionsToolLinks extensions/ko
- UploadVerification extensions/ko
- Extensions in Wikimedia version control/ko
- All extensions/ko
- Extensions used on Wikimedia/ko
