Hello
How i can add a Captcha code for news blog and comments because i recive a tons of spams daily
XFileSharing Pro - Captcha in news blog and comments?
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
It's complicated to implement it as a quick hack but u can try another unobtrusive technique called 'honey pots':
in news_details.html after <TMPL_UNLESS my_login> add:
Then in index.cgi after
add
in news_details.html after <TMPL_UNLESS my_login> add:
Code: Select all
<input type="text" name="name" value="" style="display:none">
<input type="text" name="email" value="" style="display:none">
<Textarea name="text" style="width:100%;display:none;" rows=3></Textarea>
Code: Select all
my $redirect = &CommentRedirect($f->{cmt_type},$f->{cmt_ext_id});
Code: Select all
if($f->{name} || $f->{email} || $f->{text})
{
sleep 10;
$ses->message("F*cking bot!");
}