Extension:AntiSpoof

From MediaWiki.org

Jump to: navigation, search

               

Manual on MediaWiki Extensions
List of MediaWiki Extensions
Crystal Clear action run.png
AntiSpoof

Release status: stable

Implementation  User activity
Description Prevents the creation of confusable usernames.
Author(s)  Brion Vibber
Last Version   ? (2007-10-21)
MediaWiki  r36758 or later for r36760+
License GPL
Download Download snapshot

Subversion [Help]
Browse source code

check usage (experimental)

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

[edit] Install

  1. Download the latest snapshot
  2. Upload the files to the extensions directory.
  3. Add
    require_once("$IP/extensions/AntiSpoof/AntiSpoof.php");
    to LocalSettings.php
  4. Run php maintenance/update.php from the command line (see also here)
    Alternatively, import patch-antispoof.sql into the database. (Keep TYPE=InnoDB because the 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] Prerequisite

This extension requires the presence of Extension:ImageMap

[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