Extension:AntiSpoof

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
AntiSpoof

Release status: stable

Implementation User activity
Description Prevents the creation of confusable usernames.
Author(s) Brion Vibber (Brion VIBBERTalk)
MediaWiki 1.13+
Database changes yes
License GPL v2 or later
Download Download snapshot
Subversion [Help]

Browse source code
View code changes

CHANGELOG

Parameters

$wgAntiSpoofAccounts

Added rights

override-antispoof

Hooks used
LoadExtensionSchemaUpdates

AbortNewAccount
AddNewAccount
UserCreateForm
RenameUserComplete

Check usage (experimental)
Bugs: list open list all report

The AntiSpoof extension is an extension for preventing confusable usernames from being created. It blocks the creation of accounts with mixed-script, confusing and similar usernames.

For example, if user John Doe is already registered, the extension will block attempts to register:

  • John Dоe ("о" in Dоe is Cyrillic small letter O),
  • Јohn Doe ("Ј" in Јohn is Cyrillic capital letter Je),
  • John Đoe ("Đ" in Đoe is Latin capital letter D with stroke),
  • Jóhn Doe ("ó" in Jóhn is Latin small letter O with acute),
  • John ​Doe (there is Zero-width space before Doe),

etc.

[edit] Installation

  1. Download the files from SVN or download a snapshot. Choose the version that matches your version of MediaWiki.
  2. Create a directory AntiSpoof in your $IP/extensions directory.
  3. Extract the files to this $IP/extensions/AntiSpoof directory.
  4. Add
    require_once( "$IP/extensions/AntiSpoof/AntiSpoof.php" );
    to the bottom of LocalSettings.php.
  5. In case user accounts are stored in a shared database, add
    $wgSharedTables[] = 'spoofuser';
    just after that line.
  6. Add the required tables to the database; on the command line, enter:
    php maintenance/update.php
    (Note: Your designated database user needs to have CREATE rights on your MediaWiki database.)
  7. Run the batchAntiSpoof.php script; on the command line to pre-populate the spoof usernames. Enter:
    php extensions/AntiSpoof/maintenance/batchAntiSpoof.php
  8. Installation can now be verified through Special:Version of your wiki.

[edit] See also


Language: English  • 日本語 • Русский
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox