forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 plugins => Topic started by: jmcnyc on October 09, 2010, 02:44:52 am

Title: Comment Spam - Strengthen Captcha and Akismet
Post by: jmcnyc on October 09, 2010, 02:44:52 am
I am using the latest release.

I have both Captcha and Akismet turned on.  Any way to strengthen them?   Which has  more impact - Akismet is catching stuff.  Not sure if Captcha is as strong as it can be.  Can it be strengthen so the image is modified - more text?  Or more lines?

Any ideas?  I have comment approval turned on - but have to always clear lots of spam every day before I get to the real user comments.

Thanks

Jim
Title: Re: Comment Spam - Strengthen Captcha and Akismet
Post by: Nibbler on October 09, 2010, 01:16:29 pm
You can tweak the captcha settings in captcha.php - see include/captcha.inc.php for descriptions of the settings.
Title: Re: Comment Spam - Strengthen Captcha and Akismet
Post by: jmcnyc on October 09, 2010, 04:10:12 pm
Thanks

I see this line in Captcha.php:
$oPhpCaptcha = new PhpCaptcha($aFonts, 150, 30, 5, 20, false);

What are the parameters for - the 150, 30, 5, 20 and false?
Title: Re: Comment Spam - Strengthen Captcha and Akismet
Post by: Nibbler on October 09, 2010, 04:32:44 pm
As I said, descriptions of the settings are in include/captcha.inc.php

Code: [Select]
         $aFonts, // array of TypeType fonts to use - specify full path
         $iWidth = 200, // width of image
         $iHeight = 50, // height of image
         $iNumChars = 5, // number of characters to draw
         $iNumLines = 70, // number of noise lines to draw
         $bCharShadow = false, // add shadow to generated characters to further obscure code
         $sOwnerText = '', // add owner text to bottom of CAPTCHA, usually your site address
         $aCharSet = array(), // array of characters to select from - if blank uses upper case A - Z
         $sBackgroundImage = '' // background image to use - if blank creates image with white background
Title: Re: Comment Spam - Strengthen Captcha and Akismet
Post by: jmcnyc on October 09, 2010, 04:37:35 pm
sorry my mistake - thanks for the help.