I just added and branched blacklisting support to the troll module. It imports lists from SPEWS.org, okean.com, and/or a custom list of your own to punish users visiting from blacklisted IP blocks. What you can do to blacklisted visitors:

  • add a random stutter of 1-5 seconds to the page output
  • drop form POST submission data (spammers should love that)
  • always send blank pages
  • always send a 404 not found message
  • always redirect to an alternate URL

Of course, there's a whitelist to make sure you don't lock yourself out of your own site and you can lookup IP addresses in a search form to see if they match IP blocks in the blacklist.

Comments

laura s’s picture

That is: Sad to say that such a feature is welcome. Thanks!

Laura
_____ ____ ___ __ _ _
pingVision, LLCBlogHerrare patternscattered sunshine

_____ ____ ___ __ _ _
Laura Scott :: design » blog » tweet

forgette’s picture

Thank you so much for this module! It module went in very smoothly for our setup. The okean.com lists went in just fine, be we are having problems with the spews.org lists - I'm curious if it is perhaps due to their size?

When attempting the upload spews list (either 1 or 2) I get the maximum timeout fatal error messages :

Fatal error: Maximum execution time of 30 seconds exceeded in X:\foo\wwwroot\LocalUser\bdweb\bpl\includes\database.mysql.inc on line 101

Fatal error: Maximum execution time of 30 seconds exceeded in X:\foo\wwwroot\LocalUser\bdweb\bpl\includes\session.inc on line 50

Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0

If I grab the huge spews list, and edit it and post on my own website to grab, then I get Troll specific errors:

* warning: fopen(): php_network_getaddresses: gethostbyname failed in X:\foo\wwwroot\LocalUser\bdweb\bpl\modules\troll\troll.module on line 535.
* warning: fopen(http://www.somewhereelse.foo/bpl/spews2mod.txt): failed to open stream: No error in X:\foo\wwwroot\LocalUser\bdweb\bpl\modules\troll\troll.module on line 535.

skyl1ne’s picture

* warning: fopen(): php_network_getaddresses: gethostbyname failed in X:\foo\wwwroot\LocalUser\bdweb\bpl\modules\troll\troll.module on line 535.
* warning: fopen(http://www.somewhereelse.foo/bpl/spews2mod.txt): failed to open stream: No error in X:\foo\wwwroot\LocalUser\bdweb\bpl\modules\troll\troll.module on line 535.

darxtar’s picture

I got same error message.
Is there any alternative URL for SPEW list?
Thanks before.

fuldespanto’s picture

According to wikipedia, SPEWS is no longer active. Try APEWS (Anonymous Postmaster Early Warning System) instead