Extension talk:AntiBot

Latest comment: 7 years ago by Monitorio in topic Mechanism for preventing bots?

Letting your own bots work

edit

Be warned, this really does work - the simple script shipped with the framework will stop the well-known pywikipediabot from working. If you want to allow some users to use bots, you need to add an exception to GenericFormEncoding.php for users with the 'bot' right (or whatever you decide):

...
	global $wgUser;
	if ( !$wgUser->isAllowed( 'bot' ) ) {
		if ( AntiBot::trigger(__CLASS__) == 'fail' ) {
			return false;
		}
	}
...

--GreenReaper 05:16, 9 October 2008 (UTC)Reply

Crashes, no real instructions on how to use. 24.249.248.8 15:10, 18 November 2008 (UTC)Reply

Yeah, and I'm leery about using something of this nature that I don't have the source code for. Tisane 23:00, 19 April 2010 (UTC)Reply

Invalid argument supplied for foreach() in AntiBot.php

edit

Warning: Invalid argument supplied for foreach() in x/extensions/AntiBot/AntiBot.php on line 57
Warning: Cannot modify header information - headers already sent by (output started at x/extensions/AntiBot/AntiBot.php:57) in x/includes/WebResponse.php on line 16

Problem is in PHP function glob, as they say "On some systems it is impossible to distinguish between empty match and an error." So if the folder active is being empty, glob is not returning an empty array for foreach function.

Simple workaround could be this if we use glob.

# Load plugins
$pluginDir = glob( dirname( __FILE__ ) . '/active/*.php' );
if ( is_array( $pluginDir ) ) {
	foreach ( $pluginDir as $file ) {
		require( $file );
	}
}

--Dalibor Bosits 13:57, 6 September 2010 (UTC)Reply

This is useless for non WikiMedia wikis?

edit

If this is useless for non WikiMedia wikis, it should read some message on top of the desciption. Ptherwise it's a time waster. --Subfader 21:36, 30 January 2011 (UTC)Reply

Plugins

edit

The page states: "This extension itself does not provide any protection against spambots. You have to get a plugin that is not available for free. Without this plugin the extension does not work!"

Where does one get the plugin? No indication is given. --Robkam (talk) 18:47, 3 November 2012 (UTC)Reply
Contrary to the statement on the page there is one plugin shipped with the extension. --Prh47bridge (talk) 08:53, 15 April 2013 (UTC)Reply

Mechanism for preventing bots?

edit

Hi, can someone please explain how AntiBot works? By what mechanism does it prevent bots from editing and is it known to actually help in preventing bots? I've taken a brief glance over the source code and it looks like it just inserts a hidden field in the form and if it's filled in (as commonly done by bots), the action gets rejected. Can someone tell me if I'm right or does it work via some other method? Thanks. Monitorio (talk) 21:59, 13 February 2017 (UTC)Reply

Return to "AntiBot" page.