Extension:RudeProxyBlock

Extension:RudeProxyBlock blocks all the open proxies that Wikipedia had blocked. The pages in the Wikipedia open proxies category have been turned into a list. This bot was created because the block function in Pywikipediabot userlib.py was always returning a BlockError, which disallows access to all users listed in MediaWiki:Openproxylist.

The extension was built this extension after Jack Phoenix requested it.

Usage
To use the extension create a list of proxies at MediaWiki:Openproxylist on your wiki (One proxy per line, no extra text on those lines). Any IP listed there will not be allowed to edit or view pages and will be redirected to Special:RudeProxyBlock and will have a message displayed to them (When viewed from a normal IP the page is just a link back to the Main Page). You can customize the title using MediaWiki:Rudeproxyblock and the message using MediaWiki:Rudeproxyblockmsg.

Installation
Copy the code below into extensions/RudeProxyBlock.php and add the change to LocalSettings.php.