Extension:AntiSpoof
|
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 | ||
| Tables | spoofuser | ||
| License | GPL v2 or later | ||
| Download | |||
|
|||
|
|||
|
|||
|
Translate the AntiSpoof extension if it is available at translatewiki.net |
|||
| Check usage and version matrix; code metrics | |||
| 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:
- Jοhn Doe ("ο" in Jοhn is Greek small letter omicron),
- 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 a Zero-width space before Doe),
- Jøhn Doe ("ø" in Jøhn is Scandinavian oe),
etc.
Download[edit | edit source]
The extension can be retrieved directly from Git [?]:
- Browse code
- Some extensions have tags for stable releases.
- Browse tags
- Select the tag
- Click "snapshot"
- Each branch is associated with a past MediaWiki release. There is also a "master" branch containing the latest alpha version (might require an alpha version of MediaWiki).
- Browse branches
- Select a branch name
- Click "Continue"
Extract the snapshot and place it in the extensions/AntiSpoof/ directory of your MediaWiki installation.
If you are familiar with git and have shell access to your server, you can also obtain the extension as follows:
cd extensions/
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/AntiSpoof.git
Installation[edit | edit source]
- Download and extract the file(s) in a directory called
AntiSpoofin yourextensions/folder. - Add the following code at the bottom of your LocalSettings.php:
require_once "$IP/extensions/AntiSpoof/AntiSpoof.php";
- Run the update script which will automatically create the necessary database tables that this extension needs.
- In case user accounts are stored in a shared database, add:
- Run the
batchAntiSpoof.phpscript from the command line to pre-populate the antispoof table with your wiki's existing usernames.
- Done! Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.
- To verify that it's working, try creating an account for username "Adm1n"; most wikis have an "Admin" account and so AntiSpoof should reject this lookalike username with a message like "The name Adm1n is too similar to the existing account: Admin".
See also[edit | edit source]
- Equivalence sets (large page)
| This extension is being used on one or more Wikimedia projects. This probably means that the extension is stable and works well enough to be used by such high-traffic websites. Look for this extension's name in Wikimedia's CommonSettings.php and InitialiseSettings.php configuration files to see where it's installed. A full list of the extensions installed on a particular wiki can be seen on the wiki's Special:Version page. |
| Language: | English • 日本語 • русский |
|---|
- GPL licensed extensions
- Stable extensions
- User activity extensions
- Extensions in Wikimedia version control
- Extensions which add rights
- LoadExtensionSchemaUpdates extensions
- AbortNewAccount extensions
- AddNewAccount extensions
- UserCreateForm extensions
- RenameUserComplete extensions
- All extensions
- Extensions used on Wikimedia