Greymatter SpamKill commentspam filter

This is a simple shell script that walks through the Greymatter archives/-directory and removes spam-comments from the posts.

Requirements

To be able to use this script you need:
This software has been tested with Greymatter version v1.21c.

Download and installation

Download the following file and put it on your webserver. On unix-like servers with shell acces I would suggest you use wget to download it directly into your account.

Download: filter-sh.txt (on the bottom of this web page) into your Greymatter archives directory.

Next, rename it to filter.sh and open it with your favourite editor. Change the settings in the top of the script to suit your configuration and your likes:

* The WORDS variable lets you define words that indicate a spam-comment. Any comment that contains any of these words will be trashed with no further confirmation.
* The BANLISTCGI variable should point to the relative or absolute location of your gm-banlist.cgi file. The script will add any spammer's IP to the list of banned users.

The last step is to make the file executable. Simply issue a chmod x filter.sh command.

Running

Change directories to the greymatter archives/ directory where you installed the script, and type ./filter.sh and hit Enter.

Now, when the script has finished, log into your Greymatter control panel and rebuild everything.

Disclaimer

This script may mess up your Greymatter archives. Use it at your own risk!

Microblog

Zojuist @raymond_domingo even op bezoek gehad... was wel even gezellig! (about 11 hours ago @twitter)

@Connectinghelen Echofon is inderdaad ook mijn favoriet. Je kan dat soort dingen ook gewoon vragen he :-) (1 day ago @twitter)

@enzp dat zit inderdaad erg leuk in elkaar! (2 days ago @twitter)

aaaaand, you're going where, exactly?" (2 days ago @twitter)

@dennisblaak die is vanavond nog even aan de beurt (2 days ago @twitter)

Mormoon-compatible porno, de nieuwe trend: http://forum.bodybuilding.com/showthread.php?t=127185813 (2 days ago @twitter)