Ether Blog

Just another WordPress weblog By: Oscar Rovira

wp-captcha Captcha System 1.0 for WordPress MU

Posted on | November 21, 2007 | 8 Comments

wp-captcha English Version

Introduction:

As many know, WordPress ® launched its system some time ago WordPress MU (WordPress Multi User) this system is a modified version of the original WordPress system, which lets you create a site where you can host a "myriad" of users who everyone can have one or more WordPress Blogs independent of each other. As an example you can visit the site EterBlogs

Issue:

The system allows anyone to register and create one or more users and also one or more blogs per user, the problem is that the registration system does not have any verification CAPTCHA * allowing any Robot (Boot, Spider or you name it) can access your page and create users and Blogs-Spamers. This lack of protection can cause many problems, since you'll have hundreds or thousands of blogs by advertising ( 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 number of firms (mainly Chinese and American) working to make this type of illegal advertising are too many and it seems that every day they grow and above all creating new systems and robots that record softisticados blogs in public places, it which becomes more tedious and difficult task of managing and maintaining a site created with WordPress MU .

The problem is not only having to be eliminated and / or manually checking these blogs as spam and users as spammers. because if we can leave them there, but the increase in server resources can become quite worrisome, because the size of your database will grow enormously and exponecialmente, the number of queries to the MySQL database and also increase this obviously hard disk space, use of microprocessor and of course the bandwidth consumed by these junk blogs.

The solution:

wordpress_mu_wp-captcha-eterblogs.jpg Integrating Captcha system * is almost the perfect solution. the problem is that WordPress does not integrate this system as a free version of WordPress MU , in fact, even in his official sitema wordpress.com .

So after searching a plugin or hack that will integrate a captcha in wordpress mu and not finding any solution, I decided to program my own script captcha and some hacks to EterBlogs and make it available for those who want to integrate them into your wordpress sites, it is clarify that this script can be used on any other web system.

The script name is wp-captcha, as was originally written for WordPress MU and since the system can be integrated into any web page, either a CMS script or use a fromulario Plugin, I decided to keep the name but doing reference to P ublic W idespread - Captcha

Installation:

Since the shell


A. - Enter the root directory of your WordPress MU
2. - Download wp-captcha
# Wget http://digitalsoftproject.com/software/wp-captcha/wp-captcha_01.zip
3. - Unzip the file wp-catpcha.zip
# Unzip wp-captcha.zip

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 delete the directory wp-captcha and file wp-captcha . zip

# Cd wp-captcha
# Mv wp-captcha. * .. /
VeraMoBd.ttf # mv .. /
# Cd ..
# Rm-fr wp-captcha
# Rm-f wp-captcha.zip

5. - Edit with nano vi or your favorite editor wp-signup.php file, wp-activate.php wp-includes/wpmu-functions.php and as indicated by the file WPMU-captcha-Spanish-README.TXT


Via FTP

A. - Wp-captcha Download from here
2. - Unzip the file wp-captcha.zip
3. - Copy files and wp-wp-captcha.php VeraMoBd.ttf captcha.jpg and the root directory of your WordPress MU
4. - Edit the file wp-signup.php, and wp-activate.php wp-includes/wpmu-functions.php as indicated by the file WPMU-captcha-Spanish-README.TXT


License:
wp-captcha is free software and licensed under the GPL (General Public License)

Suggestions:
Any suggestions, comments, criticisms, etc.. you can do it here or by mail to oscar.rovira @ gmail.com

Donations:
If you liked and has been useful for this script, you can contribute via paypal to the account oscar@digitalsoftproject.com

* C ompletely A utomated P ublic T Uring test to tell omputers C and H Umans A part (Test Automated Public Turing to tell Computers and humans).

Comments

8 Responses to "wp-captcha Captcha System 1.0 for WordPress MU"

  1. Ether Blog »wp-captcha Captcha System 1.0 for WordPress Mu
    November 22nd, 2007 @ 2:02 PM

    [...] Wp-captcha Spanish Version [...]

  2. Alexis
    November 23rd, 2007 @ 2:04 PM

    Hello Oscar, a pleasure to my visits here, I find the momentum of the mood that pushes me in the adventure of change, since the difference envious, have, I have him very fond of the Space, but always appears the concern of new experiences, end; estimate it my chances, I guess it will not be of extreme difficulty. Anyway, good weekend friend, take care.

  3. Josemari
    December 4th, 2007 @ 5:13 a.m.

    Hello, I'm trying to integrate Captcha in the WP MU but I get an error:

    Warning: imagettftext (): Could not find / open font in / ... asdfgasdfg ... / blogs / wp-captcha.php on line 50

    The files were uploaded / updated successfully.

    Take this opportunity to ask if there is any complete translation into Castilian of WP MU, I have the normal WP and there are parts that remain untranslated.

    Best regards and congratulations for the blog. And thanks for the content : D

  4. Oscar Rovira
    December 4th, 2007 @ 3:07 PM

    Hello Josemari
    Line 50 is:

    50 imagettftext ($ captcha_image, 25, 3, 40, 40, $ text_color, 'VeraMoBd.ttf', $ key);
    $ 51 lines_to_draw = mt_rand (10, 20);

    Along these lines use the imagettftext function which is used to write about an image, the variable $ captcha_image is set to line 28, which is as follows:

    $ 28 BG_Image = "wp-captcha.jpg";

    There must be shown the file name that you used as background for the captcha, you can specify the absolute path or leave the file name only if you've put the file in the root of your wordpress mu.

    Make sure the image is in jpg format, the name is the same (wp-captcha.jpg)

  5. Josemari
    December 13th, 2007 @ 5:34 a.m.

    I've fixed. The problem, as I feared, was in the paths, and I've been getting a fix. / Both for the captcha image as the source used (leave the comment if it is useful to someone).

    A greeting and thanks.

  6. sebastian
    December 23rd, 2007 @ 1:17 PM

    see install wp mu, but I'm not user blogs, put it so people had their space ... however ... I have problems with the records ... each user has their own? why not send passwords to anyone ... and my visa I have a new blog, do not understand? , Put it in Spanish, and add themes, some plug ins, as I fix this? or is it so?
    http://www.blog.ya1111.com
    http://www.ya1111.com
    if someone can give me a help with the issue ...
    I can recommend someone or inns plugg ...

  7. Sergio
    March 5th, 2008 @ 11:57 a.m.

    Hello, I have added lines of code that says in the txt help, and I see the captcha image well in the signup.php
    Install the latest version of wordpress mu 1.3.3, but when a user enters the verification code fails to register the signup screen, ie does not reach the screen that has been emailed.
    To make sure that there was another problem remove the captcha code and then if files can be recorded, which may be the problem?

    * Gives no error, but after placing the verification code and press again to register the same page.

  8. Lore
    June 19th, 2008 @ 5:28 PM

    Hi all,

    The same thing happens to me. I installed the captcha following all directions down pat.

    But the following problems occur:

    - User wants to register.
    - Write your user name, email, captcha code and click Next.
    - Now include the url for your blog, writes the blog title and click next (to complete the registration).

    But instead of presenting "Your completed registration, blah blah blah ..", the browser returns you to the page where you enter the captcha again.

    Any suggestions?

Leave a Reply





  • Welcome


    I send a greeting
    with the flag of your country

  • Translator

    Spanish flagItalian flagKorean flagChinese (Simplified) flagChinese (Traditional) flagPortuguese flagEnglish flagGerman flag
    French flagJapanese flagArabic flagRussian flagGreek flagDutch flagBulgarian flagCzech flag
    Croatian flagDanish flagFinnish flagHindi flagPolish flagRomanian flagSwedish flagNorwegian flag
    Catalan flagFilipino flagHebrew flagIndonesian flagLatvian flagLithuanian flagSerbian flagSlovak flag
    Slovenian flagUkrainian flagVietnamese flagAlbanian flagEstonian flagGalician flagMaltese flagThai flag
    Turkish flagHungarian flag      
  • Calendar

    November 2007
    L M X J V S D
    "October February »
    1 2 3 4
    5 6 7 8 9 10 11
    12 13 14 15 16 17 18
    19 20 21 22 23 24 25
    26 27 28 29 30
  • Goal

  • My Flickr pictures

    aftherend03

    aftherend03 -c

    aftherend05 -c

    31/10/2010



    Dionaea Muscipula 3 trampas una hoja  y 2 hojas pegadas DSC04259 by Oscar Rovira 06julio2010 DSC04275-c

    Dionaea Muscipula 3 trampas una hoja  y 2 hojas pegadas DSC04259 by Oscar Rovira

    Pinguicula cazando dos arañitas DSC04242-c

    More Photos