Extension:Bad Behavior

The Bad Behavior extension automatically blocks harvesters, spam bots, and other funky stuff.

By default, it adds a cookie which can be disabled with appropriate configuration.

It has some problems if you are using cache, in particular serving of cached wiki pages can't be blocked, only form submission will.

Extension does not work anymore since MediaWiki 1.34+ due to it's usage of an deprecated constant.