Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
doffer83
Worker
Worker



Joined: Apr 17, 2011
Posts: 117
Location: Amsterdam

PostPosted: Thu Jan 31, 2013 6:42 am Reply with quote

I am sick of the spam bots which daily register on my site.. so I decided to use the better version of google (recaptcha).

in my old nuke site we use APPROVE MEMBERSHIP Version 6.1 from this site http://www.ulsoft.scarbridge.co.uk

how to use it???

I paste the next code

Code:


require_once('recaptchalib.php');
  $publickey = "your key"; // you got this from the signup page
echo '<div dir="ltr">'.recaptcha_get_html($publickey).'</div>';



then the second part inside the form


Code:
echo "<tr><td colspan='2'>\n"

       ."<input type=\"hidden\" name=\"op\" value=\"new user\">\n";
    for ($i = 1; $i < 25; $i++)
    {
       $field_activatedname = "field_activated"."$i";
       $field_activated = $$field_activatedname;
       $customname = "custom"."$i";
      $custom = $$customname;      
      $field_namename = "field_name"."$i";
      $field_name = $$field_namename;
      $field_requiredname = "field_required"."$i";
      $field_required = $$field_requiredname;
      echo "<input type=\"hidden\" name=\"$field_namename\" value=\"$field_name\">"
       ."<input type=\"hidden\" name=\"$field_activatedname\" value=\"$field_activated\">"
       ."<input type=\"hidden\" name=\"$field_requiredname\" value=\"$field_required\">";
   }   

require_once('recaptchalib.php');
  $publickey = "publickey"; // you got this from the signup page
echo '<div dir="ltr">'.recaptcha_get_html($publickey).'</div>';
                                                
       echo "<input type=\"submit\" value=\""._NEWUSER."\">\n"
           ."</td></tr></table>\n"
       ."</form>\n"
       ."<br>\n"




to customize it I use clean theme .. add this code before the form like this


Code:
echo "<br>\n";

   OpenTable();


echo" <script type=\"text/javascript\">"
  . "var RecaptchaOptions = {"
  . "   theme : 'clean'"
  . "};"
  . "</script>"
 ."";
   echo "<form action=\"modules.php?name=$module_name\" method=\"post\">\n"
           ."<b>"._REGNEWUSER."</b> ("._ALLREQUIREDEXCEPT.")<br><br>\n"        


you can use my index file if you like (modified al lot for rtl languages) en don't forget to change api key

to get the file and own key

http://www.google.com/recaptcha

Code:
I could not add al the code of the index file

_________________
We are sorry that Tony Soprano is dead, We wish Assad the Syrian maffia boss had died instead. RIP Tony 
View user's profile Send private message Visit poster's website
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Fri Feb 01, 2013 1:30 am Reply with quote

A CAPTCHA probably won't help too much with php-nuke because it is possible to register accounts wihout even completeing the form, which is one of the reasons so many people have simply stopped using it. However if you are going to add a third party CAPTCHA, you will also need to add it to the forum registration as well because that is usually what the autmated bots target.
 
View user's profile Send private message Send e-mail
doffer83







PostPosted: Fri Feb 01, 2013 7:17 am Reply with quote

Guardian2003 wrote:
A CAPTCHA probably won't help too much with php-nuke because it is possible to register accounts wihout even completeing the form, which is one of the reasons so many people have simply stopped using it. However if you are going to add a third party CAPTCHA, you will also need to add it to the forum registration as well because that is usually what the autmated bots target.


I agree ... one thing I wanna say I disabled registration
through the forum by a small code (i can't find it now).

I also agree when you write that phpnuke is a terrible cms ... I will use raven in my next sites I make for friends and other users
 
doffer83







PostPosted: Sat Feb 09, 2013 9:59 pm Reply with quote

5 dayes or even more I think without any spam regestration.. hoerrra
 
sak
Worker
Worker



Joined: Jul 06, 2005
Posts: 172

PostPosted: Fri Feb 15, 2013 12:39 pm Reply with quote

I'm running the latest version of RavenNuke and I'm getting smashed by bots registering at the site Sad Sad Sad

I thought the built-in captcha would keep them up, but somehow it is not. How do the bots get around it? What are some options to fix this??

_________________
www.ICarry.org
www.GunOwnersFellowship.com 
View user's profile Send private message Visit poster's website
Guardian2003







PostPosted: Fri Feb 15, 2013 12:55 pm Reply with quote

sak wrote:
How do the bots get around it? What are some options to fix this??

As far as I'm aware, no bot has ever beaten our CAPTCHA. I do not say it isn't possible, but I have investigated a lot of websites over the years who's owners thought bot's were bypassing the CAPTCHA and every single case I have investigated has led me back to sweat shops who employ people to make manual registrations. If you check the IP of those registering, you will likely find most of them will be from the same net block, probably in India.
 
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Fri Feb 15, 2013 1:21 pm Reply with quote

I have been using nukeSPAM and Site Guardian on my site and only have 1 or 2 a month trickle in.

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed Mar 13, 2013 10:21 pm Reply with quote

sak wrote:
I'm running the latest version of RavenNuke and I'm getting smashed by bots registering at the site Sad Sad Sad

I thought the built-in captcha would keep them up, but somehow it is not. How do the bots get around it? What are some options to fix this??


Sak, just an observation/question Wink

Your post is dated Feb 15th. The latest release of RN(tm), v2.51, was not released to the public until Feb 17th. Are you sure you're using the latest release?
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©