Extension talk:AntiBot

From MediaWiki.org

Jump to: navigation, search

[edit] Letting your own bots work

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)

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