Extension:AntiSpoof

From MediaWiki.org

Jump to: navigation, search
Manual on MediaWiki Extensions
List of MediaWiki Extensions
AntiSpoof

Release status: stable

Implementation other (invalid type)
Description Prevents the creation of confusable usernames.
Author(s) Brion Vibber
Download SVN (browse)
Parameters $wgAntiSpoofAccounts
Added rights override-antispoof
Hooks used

LoadExtensionSchemaUpdates
AbortNewAccount
AddNewAccount

AntiSpoof is an extension for preventing confusable usernames from being created.

[edit] Install

  1. Download the *.php, equivset.ser and the patch-antispoof.sql from SVN (if you're using command-line based SVN, do svn co http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/AntiSpoof in the extensions directory
  2. Upload the files to the extensions directory.
  3. Add
    require_once("$IP/extensions/AntiSpoof/AntiSpoof.php");
    to LocalSettings.php
  4. Import patch-antispoof.sql into database. (Keep TYPE=InnoDB because Key is more than MySQL can handle)

Note: equivset.ser is set to null
Username "Exampla" will be created and regardless if username "Example" is in the database. However, Login error: "??=?" (special characters ) is not allowed to prevent confusing or spoofed usernames: Contains unassigned or deprecated character. Please choose another name.

[edit] Alternative MySQL table

You could dump this table in and at your own risk!

DROP TABLE IF EXISTS `spoofuser`;
CREATE TABLE IF NOT EXISTS `spoofuser` (
`su_name` VARCHAR(164) NOT NULL DEFAULT '',
`su_normalized` VARCHAR(164) DEFAULT NULL,
`su_legal` TINYINT(1) DEFAULT NULL,
`su_error` TEXT,
PRIMARY KEY  (`su_name`),
KEY `su_normalized` (`su_normalized`,`su_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

This extension is being used on one or more of Wikimedia's wikis. It means that the extension is stable and works well enough to be used by such high traffic websites. A full list of the extensions installed on a particular wiki is produced by Special:Version on that wiki.

Extension:AntiSpoof/Equivalence sets

Personal tools