Main Contents

wp-captcha 1.0 Captcha System for WordPress Mu

Noviembre 21, 2007

wp-captcha Versión Español 

Introduction:

As many of you know,  WordPress®launched some time ago their system WordPress MU (Wordpress Multi User). This system is an altered version of the original  WordPress system, which allows you to create a website in which you may host “countless”  Users and each one of them may have one or more WordPress Blogs independent one from the other. As an example you may visit EterBlogsThe system allows any person to register and create one or more users and at the same time one or more Blogs per user, the problem is that the  registration system does not have any type of  CAPTCHA* checking, therefore, allowing any  Robot (Boot, Spider or as you wish to call it) may enter your page and create Users and Blogs-Spamers. This lack of protection can cause many problems, since you will have hundreds or even thousands of Blogs  making publicity (spam) in your wordpress system.

Examples of Catpchas

captcha_eterblogs.jpg captcha_facebook.jpg captcha_fotolog.jpg

captcha_google.jpg captcha_yahoo.jpg captcha_hotmail.jpg

The amount of companies (specially chinese and northamerican) dedicated to this type of illegal publicity are too many and it seems they are growing every day creating new and more sophisticated robot  systems that register blogs in public sites, and which makes more difficult and tedious the task of managing and maintaining a site created with  WordPress MU.The problem is not only having to manually eliminate or label these Blogs as spam or Users as spammers, since, if we wish we can just leave them there, but the increasement of resources in the server could become quite worryngly, since the size of your database will sep growing enormously and exponentially, the amount of consultation to the database MySQL will also get increased and obviously the space of your hard disk, the use of the Microprocesor and of course the bandwith consumed by these trash blogs.

The solution:

wordpress_mu_wp-captcha-eterblogs.jpg

Integrate a Captcha* system is practically the perfect solution. The problem is that WordPress does not integrate this system to its free  version of WordPress MU, in fact, not even in their official system in wordpress.com. So, after looking for some  plugin or hack that would incorporate a  captcha in wordpress mu and not finding any solution, I decided to program my own script captcha and some hacks for EterBlogs and make it available to those who would like to integrate it to their wordpress sites; it is worth mentioning that this script may be used in any other web system. The name of the script is wp-captcha, since it was originally griten for WordPress MU and since the system may be integrated in any type of webpage, be it a CMS, Script or Plugin that uses a formulary; I decided to keep the name but referring to Widespread Public - Captcha

Installing:

From the shell


1.- Enter the root directory of your WordPress MU
2.- Download wp-captcha
# wget http://digitalsoftproject.com/software/wp-captcha/wp-captcha_01.zip
3.- Decompress the file wp-catpcha.zip
#unzip wp-captcha
4.- Enter the folder wp-captcha and move the files wp-captcha.php, wp-captcha.jpg and VeraMoBd.ttf to the root of your wordpress and if you want to eliminate the directory wp-captcha and the file wp-captcha.zip
# cd wp-captcha
# mv wp-captcha.* ../
# mv VeraMoBd.ttf ../
# cd ..
# rm -fr wp-captcha
# rm -f wp-captcha.zip5.- Edit with nano vi or your favorite editor the files wp-signup.php, wp-includes/wpmu-functions.php y wp-activate.php as indicated in file wpmu-captcha-english-README.TXT

Via FTP


1.- Download wp-captcha from here
2.- Decompress the file wp-captcha.zip
3.- Copy files wp-captcha.php and wp-captcha.jpg and VeraMoBd.ttf to the root directory of your Wordpress MU
4.- Edit files wp-signup.php, wp-includes/wpmu-functions.php and wp-activate.php as indicated by the file wpmu-captcha-english-README.TXT


Licence:
wp-captcha is a free software and is distributed under license GPL (General Public License)Suggestions:
Cany sugestión comment, critics, etc. may be made here or sent by e.mail to oscar.rovira@gmail.com
Donations:
If  you like this script and has been useful to you, you may make a contribution through paypal, account oscar@digitalsoftproject.com
https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=oscar%2erovira%40gmail%2ecom&item_name=wp%2dcaptcha&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=MX&bn=PP%2dDonationsBF&charset=UTF%2d8

*Completely Automated Public Turing test to tell Computers and Humans Apart (Prueba de Turing pública y automática para diferenciar a máquinas y humanos).

Archivado en: Trucos, WordPress MU, wp-captcha |

13 comentarios

  1. Éter Blog » wp-captcha 1.0 Sistema Captcha para WordPress MU Noviembre 21, 2007 @ 11:29 pm

    [...] wp-captcha English Version [...]

  2. wp-captcha 1.0 Sistema Captcha para WordPress MU | Ko(onem Noviembre 22, 2007 @ 12:02 am

    [...] wp-captcha English Version [...]

  3. Warrior Noviembre 26, 2007 @ 4:00 pm

    Thanks! good job!
    :-)

  4. Oscar Rovira Noviembre 26, 2007 @ 4:04 pm

    thanks Warrior.. meabe you can help me to translate this info tu Itialian language.

  5. nethanel Noviembre 27, 2007 @ 7:33 am

    I have a bug

    look at http://kaveret.org/wp-signup.php

  6. Oscar Rovira Noviembre 27, 2007 @ 3:56 pm

    Hi nethanel, you ara not using my wp-captcha. the link for your captcha is http://kaveret.org/wp-captcha.php?rand=756635, my captcha use http://eterblogs.com/wp-captcha.php?p=1. do you see?.. the rand variable in your captcha script and the p variable in my captcha script.

    Please download mi wp-captcha and fllow the instructions.

  7. koparka Noviembre 30, 2007 @ 2:35 am

    Thanks for very interesting article.

  8. Russ Diciembre 17, 2007 @ 10:38 am

    Hi,

    Thanks for the great CAPTCHA program. One thing I’m noticing on my installation is when a user submits the form *without* the required fields, the URL of the returned page with errors highlighted tacks on an extra ‘wp-signup.php’ to the end of it. So, instead of returning:

    http://keeneweb.org/wp-signup.php/

    it returns…

    http://keeneweb.org/wp-signup.php/wp-signup.php

    I appreciate any suggestion.

    Thanks!!!
    Russ

  9. Chris Enero 21, 2008 @ 9:48 pm

    Hello! I am trying to use your captcha and when following the directions, i find that the image does not show on the signup page. How to correct this?

  10. Pawel Febrero 15, 2008 @ 9:55 am

    Has anyone prepared all the chenged files: wp-signup.php, wp-includes/wpmu-functions.php y wp-activate.php?

    I tried to do this and I almost succeeded, but still not. There is something wrong in my files. Can anyone send me changed files?

  11. Aka Marzo 5, 2008 @ 1:51 am

    Thanks for a great script. But it might not work if you’re using PHP > 5.0.0 - the picture won’t be showing.
    So as to get it to work, in ‘wp-captcha.php’ change the second code line from:

    if ($HTTP_GET_VARS["p"]){

    to:

    if ($_GET["p"]){

    To Oscar: could you change the source itself? As since php5 variable HTTP_GET_VARS is depreciated; _GET was introducted in php4.1 and don’t thnink if someone is using previous versions of php.

  12. Aka Marzo 26, 2008 @ 6:57 pm

    I forgot to mention, that it’s not working for me.
    At final step it’s redirecting me to the beginning of installation, so gave up on this hack.
    Instead using WPMU Captcha (but visually preferred this one, pity)

  13. Polly Stewart Mayo 11, 2008 @ 1:05 pm

    5 minutes to setup and running perfect on new install of WP MU. Thanks!

Deje un comentario