Rodeo
11-05-2007, 05:16 PM
I recently noticed some spam accounts being set up. They must be getting through the captcha-system. So I started changing the settings of the captcha (in nbs/php-captcha.inc.php). With the settings in that file you can make spambots quite difficult to pass this turingtest:
define('CAPTCHA_SESSION_ID', 'php_captcha');
define('CAPTCHA_WIDTH', 500); // max 500
define('CAPTCHA_HEIGHT', 200); // max 200
define('CAPTCHA_NUM_CHARS', 5);
define('CAPTCHA_NUM_LINES', 75);
define('CAPTCHA_CHAR_SHADOW', false);
define('CAPTCHA_OWNER_TEXT', 'site.be');
define('CAPTCHA_CHAR_SET', ''); // defaults to A-Z
define('CAPTCHA_CASE_INSENSITIVE', false);
define('CAPTCHA_BACKGROUND_IMAGES', '');
define('CAPTCHA_MIN_FONT_SIZE', 20);
define('CAPTCHA_MAX_FONT_SIZE', 30);
define('CAPTCHA_USE_COLOUR', true);However, my website is in Dutch and I'd like to exclude all non-Dutch speakers of my website by (for example) changing the activation code. How can I do that, any hints? The whole site is now in Dutch, however they keep on coming:notamused.
define('CAPTCHA_SESSION_ID', 'php_captcha');
define('CAPTCHA_WIDTH', 500); // max 500
define('CAPTCHA_HEIGHT', 200); // max 200
define('CAPTCHA_NUM_CHARS', 5);
define('CAPTCHA_NUM_LINES', 75);
define('CAPTCHA_CHAR_SHADOW', false);
define('CAPTCHA_OWNER_TEXT', 'site.be');
define('CAPTCHA_CHAR_SET', ''); // defaults to A-Z
define('CAPTCHA_CASE_INSENSITIVE', false);
define('CAPTCHA_BACKGROUND_IMAGES', '');
define('CAPTCHA_MIN_FONT_SIZE', 20);
define('CAPTCHA_MAX_FONT_SIZE', 30);
define('CAPTCHA_USE_COLOUR', true);However, my website is in Dutch and I'd like to exclude all non-Dutch speakers of my website by (for example) changing the activation code. How can I do that, any hints? The whole site is now in Dutch, however they keep on coming:notamused.