Greymatter SpamKill commentspam filter
This is a simple shell script that walks through the Greymatterarchives/-directory and removes spam-comments from the posts.Requirements
To be able to use this script you need:- the Greymatter weblog software;
- shell access to your webhosting account and full read and write access in the
archives/directory and to thegm-banlist.cgifile (in the cgi-bin directory for Greymatter).
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 greymatterarchives/ 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.


Reply