Extension:AntiSpoof
Appearance
发行状态: 稳定版 |
|
|---|---|
| 实现 | 用户活动 |
| 描述 | 防止创建混淆的用户名。 |
| 作者 | Brooke Vibber留言 |
| 兼容性政策 | 快照跟随MediaWiki发布。 master分支不向后兼容。 |
| 数据库更改 | 是 |
| Composer | mediawiki/anti-spoof |
|
|
|
|
| 许可证 | GNU General Public License 2.0 or later |
| 下載 | |
| 前往translatewiki.net翻譯AntiSpoof扩展 | |
| 問題 | 开启的任务 · 报告错误 |
AntiSpoof(反混淆、反用户名混淆)扩展是防止註冊易混淆的用戶名稱,此類名稱可能導致誤認、規避封鎖模式或冒用現有帳戶。 它同時阻止創建混合字符的用戶名稱。
例如,如果用户John Doe已经注册,则扩展将阻止尝试注册:
- JoHn dOE (不同地方的大寫字母)
- Jοhn Doe (Jοhn中的"ο"是希腊语的小写字母。)
- John Dоe (Dоe中的"о"是西里尔字母中小写的O。)
- Јohn Doe (Јohn中的"Ј"是西里爾大寫字母Je。)
- John Đoe (Đoe中的"Đ"是帶筆劃的拉丁文大寫字母D。)
- Jóhn Doe (Jóhn中的"ó"是帶銳角的拉丁文小寫字母O。)
- John Doe (在Doe之前有一個零宽空格)
- Jøhn Doe (Jøhn中的"ø"是斯堪的納維亞語oe。)
- J0hn Doe ("0"是阿拉伯数字0)
等等
安装
- 下载文件,并解压
AntiSpoof文件夹到extensions/目录中。
开发者和代码贡献人员应改从Git安装此扩展,输入:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/AntiSpoof
- 只有是從Git安裝的才需运行Composer来安装PHP依赖,通过发行
composer install --no-dev至扩展的目录。 (参见T173141了解潜在问题。) - 請新增下列代码到您的LocalSettings.php文件的底部:
wfLoadExtension( 'AntiSpoof' );
- 請运行更新脚本,它将自动创建此扩展所必须的数据库表。
- 如果用户账户存储在一个共享的数据库中,则添加:
$wgSharedTables[] = 'spoofuser';
- If you see an error about 'spoofuser' table missing, you can try running from mediawiki root folder
php maintenance/run.php update.php
- Run the
batchAntiSpoof.phpscript from the command line to pre-populate thespoofusertable with your wiki's existing usernames.
php maintenance/run.php AntiSpoof:batchAntiSpoof.php
完成 – 請导航至您的wiki上的Special:Version,以验证此扩展已成功安装。- 要驗證它是否正常工作,請嘗試為用戶名“Adm1n”創建一個帳戶;大多數維基都有一個“管理員”(Admin)帳戶,因此反混淆應該拒絕這個相似的用戶名,並顯示類似“名稱Adm1n與現有帳戶太相似:管理員(Admin)”的消息。
So, after installation from Git change to the directory containing the extension e.g. "../extensions/AntiSpoof/" and run composer install --no-dev, or when updating: composer update --no-dev.
Alternatively as well as preferably add the line "extensions/AntiSpoof/composer.json" to the composer.local.json file in the root directory of your wiki like e.g.
{
"extra": {
"merge-plugin": {
"include": [
"extensions/AntiSpoof/composer.json"
]
}
}
}
參見
- Equivset (provides the equivalence sets used by AntiSpoof)
| 此扩展用于一个或多个维基媒体项目。 这可能意味着扩展足够稳定、运作足够良好,可以用在这样的高流量的网站上。 请在维基媒体的CommonSettings.php和InitialiseSettings.php配置文件中查找此扩展的名称以查看哪些网站安装了该扩展。 特定wiki上的已安装的扩展的完整列表位于Special:Version页面。 |
| 此扩展在以下wiki农场/托管网站和/或软件包中提供: |
Categories:
- Stable extensions/zh
- User activity extensions/zh
- Extensions supporting Composer/zh
- DeleteAccount extensions/zh
- LoadExtensionSchemaUpdates extensions/zh
- LocalUserCreated extensions/zh
- RenameUserComplete extensions/zh
- GPL licensed extensions/zh
- Extensions in Wikimedia version control/zh
- All extensions/zh
- Pages using deprecated NoteTA template
- Extensions requiring Composer with git/zh
- Extensions used on Wikimedia/zh
- Extensions included in Canasta/zh
- Extensions included in Miraheze/zh
- Extensions included in ShoutWiki/zh
- Extensions included in Weird Gloop/zh
- Extensions included in wiki.gg/zh
