Greymatter SpamKill commentspam filterThis is a simple shell script that walks through the Greymatter
archives/-directory and removes spam-comments from the posts.
RequirementsTo 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 the
gm-banlist.cgifile (in the cgi-bin directory for Greymatter).
Download and installationDownload 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.
filter-sh.txt(on the bottom of this web page) into your Greymatter archives directory.
Next, rename it to
filter.shand open it with your favourite editor. Change the settings in the top of the script to suit your configuration and your likes:
WORDSvariable lets you define words that indicate a spam-comment. Any comment that contains any of these words will be trashed with no further confirmation.
BANLISTCGIvariable should point to the relative or absolute location of your
gm-banlist.cgifile. 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.shcommand.
RunningChange directories to the greymatter
archives/directory where you installed the script, and type
./filter.shand hit Enter.
Now, when the script has finished, log into your Greymatter control panel and rebuild everything.