New Zenner
- Join Date:
- May 2011
- Posts:
- 10
- Plugin Contributions:
- 0
Post #41 by devolutio
I've been getting around 2-4 fake signups a day.
Here is a simple interpretation of the contact us version on the first page.
NOTE: your_template should be replaced with the name of your template
Step 1:
open:
/public_html/includes/templates/template_default/templates/tpl_modules_create_account.php
insert:
<input style="visibility:hidden; display:none;" name="leaveblank" type="text">
(mine went to line 78)
save to:
/public_html/includes/templates/your_template/templates/tpl_modules_create_account.php
Step 2:
open
/public_html/includes/modules/create_account.php
insert:
$leaveblank = zen_db_prepare_input($_POST["leaveblank"]);
(mine went to line 93)
insert:
// hidden anti-spam field
if(empty($leaveblank)) {
$error = true;
}
(mine went to 493)
save to:
/public_html/includes/modules/your_template/create_account.php
I guess I'll find out tomorrow if it works against bots.