Finish with spam in user registration

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 12-14-2008, 10:07 AM
luisaocs's Avatar
New Pligger
 
Join Date: Aug 2007
Posts: 1
If some stupid spammer got to deceive your Registration Captcha System, this simple method can be very useful. With your use, in my Pligg site, the spam registration decayed of more of a hundred a day for 0.

Edit register_step_2.tpl file and increase the following line in form:

Quote:
<input type="hidden" name="registro" value="{$registro_spam}" />
Edit register.php file and increase two lines according to the following:

In function do_register1(), after line with the following text:

Quote:
if ($error) return;
Add this code:

Quote:
$main_smarty->assign('registro_spam', base64_encode(serialize($_POST["username"].(strlen($_POST["email"])*XXX/date(g)))));
And in function do_register2(), after line with the following text:

Quote:
$error = verify_reg($_POST["username"], $_POST["email"], $_POST["password"], $_POST["password"]);
Add this code:

Quote:
if ($_POST["registro"] != base64_encode(serialize($_POST["username"].(strlen($_POST["email"])*XXX/date(g))))){$error = true;}
XXX - Fill out with an aleatory number of your choice and change when necessary.


It's all...
Reply With Quote
  #2 (permalink)  
Old 12-15-2008, 02:38 AM
Casual Pligger
 
Join Date: Apr 2007
Posts: 83
hello

how do i do this with 9.9.5 ?

it seems that you are not using 9.9.5
Reply With Quote
Reply

Tags
register, registro, spam, user, usuario

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Double optin possible (registration with verification (to avoid spam complaints) soplar10 Questions and Comments 2 06-12-2008 09:14 AM
Registration and user groups tbronson Wiki Articles 0 11-04-2007 11:59 PM
Spam kill user failed - blank page jon Questions and Comments 0 05-20-2007 06:52 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development