Extension:RegexBlock/ja
From Linux Web Expert
RegexBlock リリースの状態: 安定 |
|
---|---|
File:RegexBlock.png | |
実装 | 利用者権限 , 特別ページ |
説明 | 正規表現を用いて利用者名や IP アドレスを指定したブロック、閲覧、ブロック解除を行うための特別ページを追加 |
作者 |
|
最新バージョン | 1.7 (2019-05-08) |
MediaWiki | 1.39+ |
ライセンス | ライセンス未指定 |
ダウンロード | |
|
|
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
translatewiki.net で翻訳を利用できる場合は、RegexBlock 拡張機能の翻訳にご協力ください |
RegexBlock は、正規表現を使って利用者名や IP アドレスをブロックしたり、閲覧したり、ブロックを解除したりするためのインターフェイスで、特別なページを追加する拡張機能です。 It was originally written by Bartek Łapiński for Fandom .
インストール
This extension works best when used along with setting shared database and memcached .
- <translate> [[<tvar name=2>Special:ExtensionDistributor/RegexBlock/ja</tvar>|Download]] and move the extracted <tvar name=name>
RegexBlock/ja
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/RegexBlock%2Fja - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'RegexBlock/ja' );
- <translate> Run the [[<tvar name=update>Special:MyLanguage/Manual:Update.php</tvar>|update script]] which will automatically create the necessary database tables that this extension needs.</translate>
- Ensure that the
regexblock
user right is given to a group that exists; by default this user right is given to thestaff
user group (which does not exist in a default MediaWiki installation). For example, this could be given to thesysop
group:
$wgGroupPermissions['sysop']['regexblock'] = true;
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
利用者権限
利用者権限名 | 既定でこの権限が付与されているグループ | 説明 |
---|---|---|
regexblock
|
staff | User right required to view and thus use Special:RegexBlock for managing blocks. |
regexblock-exempt
|
staff | Users who have this right are exempt from RegexBlock blocks. |
使用
- Go to
Special:RegexBlock
- Enter the IP address or the username to be blocked to the "IP address or username" field
- Enter an optional reason. If no reason is provided by the blocker, a generic reason will be shown to the blocked user.
- Select expiry time
- Select if you want to block the creation of new accounts and if the match needs to be exact or regex one
- Press "Block this user"
パラメーター
構成変数名 | 既定値 | 説明 |
---|---|---|
$wgContactLink
|
Special:Contact
|
Displayed to regexblocked users in the regexblock-reason-* interface messages. You might want to customize it if the ContactPage extension isn't installed on your wiki. |
$wgRegexBlockDatabase
|
false
|
Set this to the database to use for blockedby and stats_blockedby tables. If you want to use the local database, set this to false . Otherwise you could set this to $wgSharedDB , for example.
|
例
To block all users except local ones (192.168.xx.xx): \b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?([0]|[2-9])[0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b
関連項目
- Extension:SpamRegex — 正規表現によるページ内容での表現ブロックのための同様の拡張機能
- Extension:TitleBlacklist
- BulkBlock Extension — an extension that allows administrators to easily block multiple users at once on a MediaWiki website.
Categories:
- Pages with script errors
- Pages with broken file links
- Stable extensions/ja
- User rights extensions/ja
- Special page extensions/ja
- Extensions with manual MediaWiki version
- Extensions with no license specified/ja
- Extensions in Wikimedia version control/ja
- Extensions which add rights/ja
- All extensions/ja
- Extensions not in ExtensionJson
- Extensions by Fandom/ja
- Extensions by ShoutWiki/ja