Extension:AntiSpoof/fr
From Linux Web Expert
AntiSpoof État de la version : stable |
|
---|---|
File:Spoofing attempt.png | |
Implémentation | Activité utilisateur |
Description | Empêche la création de noms d'utilisateur pouvant prêter à confusion. |
Auteur(s) | Brooke Vibbertalk |
Politique de compatibilité | Versions ponctuelles alignées avec MediaWiki. Le master n'est pas compatible arrière. |
MediaWiki | |
Modifie la base de données |
Oui |
Tables | spoofuser |
Licence | Aucune licence spécifiée |
Téléchargement | |
Téléchargements trimestriels | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Utilisé par les wikis publics | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Traduire l’extension AntiSpoof sur translatewiki.net si elle y est disponible | |
Problèmes | Tâches ouvertes · Signaler un bogue |
The AntiSpoof extension is an extension for preventing confusable usernames from being created. Il bloque la création de comptes avec des noms d'utilisateur mixtes, confus et similaires.
For example, if user John Doe is already registered, the extension will block attempts to register:
- joHn dOE (lettres majuscules à différents endroits)
- 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)
- J0hn Doe ("0" is the number zero)
etc.
Installation
- <translate> [[<tvar name=2>Special:ExtensionDistributor/AntiSpoof/fr</tvar>|Download]] and move the extracted <tvar name=name>
AntiSpoof/fr
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/AntiSpoof%2Ffr - <translate> Only when installing from Git, run <tvar name=composer>Composer</tvar> to install PHP dependencies, by issuing <tvar name=code>
composer install --no-dev
</tvar> in the extension directory.</translate> <translate> (See <tvar name=phab><translate> task <tvar name=1>T173141</tvar></translate></tvar> for potential complications.)</translate> - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'AntiSpoof/fr' );
- <translate> Run the [[<tvar name=update>Special:MyLanguage/Manual:Update.php</tvar>|update script]] which will automatically create the necessary database tables that this extension needs.</translate>
- In case user accounts are stored in a shared database, add:
$wgSharedTables[] = 'spoofuser';
- Run the
batchAntiSpoof.php
script from the command line to pre-populate the spoofuser table with your wiki's existing usernames.
php maintenance/run.php AntiSpoof:batchAntiSpoof.php
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
- 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".
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"
]
}
}
}
Voir aussi
- Equivset (provides the equivalence sets used by AntiSpoof)
File:Wikimedia-logo black.svg | <translate> This {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension|skin}} is being used on one or more [[<tvar name=2>m:Special:MyLanguage/Wikimedia projects</tvar>|Wikimedia projects]].</translate> <translate> This probably means that the {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension|skin}} is stable and works well enough to be used by such high-traffic websites.</translate> <translate> Look for this {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension's|skin's}} name in Wikimedia's <tvar name=2>CommonSettings.php</tvar> and <tvar name=3>InitialiseSettings.php</tvar> configuration files to see where it's installed.</translate> <translate> A full list of the {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extensions|skins}} installed on a particular wiki can be seen on the wiki's <tvar name=ver>Special:Version</tvar> page.</translate> |
Spoofing attempt.png |