I’ve launched a new version of SpamBam which fixes a minor problem reported by a user. The plugin is now available on the Wordpress plugin page:-
http://wordpress.org/extend/plugins/spambam/
It’s been a huge success and we don’t get any comment spam any more on our blog ![]()




Comments 5
I find this works well, but longer comments or comments that are not submitted quickly often get sent to the spam page. What do I do?
Posted 31 Aug 2007 at 8:33 pm ¶Hi Lance
The code uses PHP sessions to store the key information to protect from spam, if a long time is left before submitting the comment or your server has a short session expiry then you might experience problems.
Also note Cookies and Javascript are both required to submit a comment.
I’d think the most likely issue is your server configuration, so I would check your php.ini file and make sure your php sessions are not set to a low expiry date.
Posted 31 Aug 2007 at 9:01 pm ¶Thanks!
Where would I find the php.ini file? I can’t seem to locate it.
Posted 01 Sep 2007 at 9:39 pm ¶It can be found in many different locations depending on the OS/Distro, I’d check the following locations:-
/usr/local/php4/lib/
/usr/local/php5/lib/
/etc/httpd/
This is the setting you need to change, I wouldn’t recommend increasing this too much because it can affect the security of your site:
http://uk.php.net/manual/en/ref.session.php#ini.session.cookie-lifetime
Or you could manually change the spambam code to change the session timeout, edit the spambam plugin and add the following setting if you don’t want to change your php.ini file:-
Posted 02 Sep 2007 at 9:04 pm ¶http://uk.php.net/manual/en/function.session-set-cookie-params.php
Thanks for this. I used to get so much spam posts on my blog, but now that I’ve had this on my blog I haven’t had any spam posts for months.
Posted 09 Mar 2008 at 1:30 am ¶Post a Comment