Comment Spam - Strengthen Captcha and Akismet Comment Spam - Strengthen Captcha and Akismet
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Comment Spam - Strengthen Captcha and Akismet

Started by jmcnyc, October 09, 2010, 02:44:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jmcnyc

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

Nibbler

You can tweak the captcha settings in captcha.php - see include/captcha.inc.php for descriptions of the settings.

jmcnyc

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?

Nibbler

As I said, descriptions of the settings are in include/captcha.inc.php


         $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

jmcnyc