How do you use it?Edit
I guess the point is to prevent someone from creating a user account name that looks similar to an existing one by mapping similar looking characters. Sounds good. But where are the installation instructions? How do you use this? Where are the files to download? Do I just copy and paste the text somewhere? As-is, this seems totally unusable, yet it's installed on several of the WMF sites, so it seems like a good thing to have. Somebody who understands this thing should add at least some rudimentary docs. Thanks! --Willscrlt 03:34, 25 August 2007 (UTC)
- I second this motion, a good 3 years later. Asndb 04:36, 15 September 2010 (UTC)
One more year after... I see installation instructions, but the purpose of the extension is still unclear. What is "confusing usernames"? This text at the end of "Install" section:
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.
explains me nothing. Looks like somebody was interrupted in the middle of writing documentation and never get back. I would like to have some explanation with a few examples.
— Van de Bugger 08:57, 27 September 2011 (UTC)
The description from the extension code is much more understandable: "Blocks the creation of accounts with mixed-script, confusing and similar usernames", but anyway, description on the extension page is still desired.
require_once("$IP/extensions/AntiSpoof/AntiSpoof.php"); #confusable usernames
- A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
(SQL query hidden)
- from within function "SpoofUser::getConflict". MySQL returned error "1146: Table 'wikidb.spoofuser' doesn't exist (localhost)".
- It looks to me like you haven't followed the installation instructions. Have you run update.php, or, the SQL query listed on the page? Query me! 09:00, 24 June 2008 (UTC)
- The SQL query listed on the page has been removed. Must everybody who wants to use this (or Extension:AbuseFilter, which requres this) on a MediaWiki site on a shared host eat the cost of switching to a different web host? --Damian Yerrick (talk) 13:31, 24 March 2012 (UTC)
Unable to free MySQL resultEdit
While installing AntiSpoof r105224 on MW1.18.0 I've received this message (read heading) after running
php extensions/AntiSpoof/batchAntiSpoof.php. Looks like everything works well, but reading this message after the command reads the database worries me a bit. Should I be worried about it? Is there a reason for this to appear? 18.104.22.168 22:22, 6 December 2011 (UTC)
Same here, tried running the batch with and without the shared user database line in LocalSettings, I get this warning either way. Going with it and hoping it's alright, anti-spoof is working regardless. Running MW 1.16--22.214.171.124 18:55, 13 January 2012 (UTC)
Error when running update.phpEdit
So I get this error
Creating spoofuser table...A database query syntax error has occurred. The last attempted database query was: "CREATE TABLE `spoofuser` ( su_name VARCHAR(255), su_normalized VARCHAR(255), su_legal BOOL, su_error TEXT, PRIMARY KEY (su_name), KEY(su_normalized, su_name) ) ENGINE=MyISAM, DEFAULT CHARSET=utf8 " from within function "DatabaseBase::sourceFile( /$/w/extensions/AntiSpoof/sql/patch-antispoof.mysql.sql )". Database returned error "1071: Specified key was too long; max key length is 1000 bytes (localhost)"
Really don't know why, apparently I can't have more than a 1000 byte key, so how do i fix this?
Actually I worked it out, edit patch-antispoof.mysql.sql to have each character be 166 and 167 instead of 255 and 255.
Fatal error during installationEdit
I made it through most of the installation steps, but I got hung up once I ran the batchAntiSpoof.php script. I got this error:
Fatal error: Class 'SpoofUser' not found in /home/*****/public_html/wikific/extensions/AntiSpoof/maintenance/BatchAntiSpoofClass.php on line 40
Anybody know what I can do to remedy this? The line in question doesn't seem to have anything wrong with it (that I can tell, anyway; I'm just a layman). I haven't touched any of the files included with AntiSpoof; I've only edited LocalSettings.php to include the extension.
Update.php is lackingEdit
Hi, my name is Nicolas I created www.wiki-theory.com...
Just to say that trying to install AntiSpoof with the command git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/AntiSpoof.git It seems that the update.php file needed to create the database is lacking.
Thanks if you can do something.
best regards--126.96.36.199 16:40, 12 September 2012 (UTC)
Sorry for my mistake, i didn't understand that update.php is in the maintenance folder of the main folder mediawiki and thought that it is in AntiSpoof/maintenance folder.
--188.8.131.52 16:44, 12 September 2012 (UTC)
Git master branch requires PHP 5.3Edit
If you're not running PHP 5.3+, note the following bug report before installing:
__DIR__ was added in PHP 5.3.0.