Extension:WikiBanHammer

WikiBanHammer Automatically trap and block bots that don't obey robots.txt rules

Installation
Warning! WikiBanHammer can ban you from your own MediaWiki wiki.

If WikiBanHammer bans you, open the file named blackhole.dat and remove your ip address and save.