Howto Integrate reCAPTCHA antispam in Joomla contact and registration form

This article is for peoples running websites using Joomla CMS. So if you are not a webmaster this article is not for you. Joomla contact component is not having anti spam protection feature. There is a nice plugin called JoomlaEZ’s reCAPTCHA Integrator that help you add recaptcha to your contact form and registration form in joomla. Follow the steps bellow to integrate reCAPTCHA in your Joomla :

Download and install the plugin :

Now, login to your Joomla administration panel and navigate to Extensions -> Plugin Manager -> System – JEZ reCAPTCHA Integrator then configure JEZ reCAPTCHA Integrator plugin as following:

Enabled: Yes
reCAPTCHA Public Key: your public key
reCAPTCHA Private Key: your private key
Inclusion Syntax: No
Auto-verify: Yes

a- Integrate reCAPTCHA at your joomla contact form :

First, go to your Joomla root directory and open to edit the file called default_form.php located at : components/com_contact/views/contact/tmpl/default_form.php

Now paste the code bellow in the line 64 ad discribed in the screenshot bellow.

global $mainframe;

Then save and close. Now open your joomla website and go to contact-us you will find reCAPTCHA there.

b- add recaptcha anti spam protection in registration form:

First, look at your template directory joomla-directory/templates/your-default-template/html to see if it override the com_user’s HTML output.

If you see the file com_user/registration/default.php inside above directory then please open that file with a text editor. Otherwise, open the file joomla-directory/components/com_user/views/register/tmpl/default.php.

In the text editor window / view port, look for something similar to:

Look for this line :

{codecitation}<button type=”submit”><?php echo JText::_(‘Register’); ?></button>{/codecitation}

Now Right before the line of code above, add following block of code:



global $mainframe;




and is done!

Usefull links :

Are you looking for a good hosting? Hostgator is the best choice, register today and got a discount of $9.94 :  Coupon code: unixmencoupon

{loadposition hostgator}

{loadposition user9}


Related Articles By Tag:

{loadposition user1}

  • Marcelo Castilla

    Hello, i have a problem with this plugin… It only works when the user is logged in… :shock:

    Anyone know how to fix this??? :shock:

  • Alex

    Hi there,

    Followed the steps for the contact form and nothing shows. Could it be that since I’m using a theme (Somaxiom from Rockettheme) it is using another php file for the contact form?

    thanks and regards,

  • AlejoSotelo

    Thanks for the support provided to copy the code entered and never leave a comment, thank you very much for the info!


  • Vexon

    Good day. I have a problem with implementing this plugin with Alpha Registration. The plugin works fine, but will not allow the already loaded recaptcha with Alpha Registration to work.

    Please advise if there is a way to use the lib file from Alpha Registration so as not to duplicate and therefore allow the plugin to work correctly.


  • linda

    well,thank you for share your article
    I like your article very much, and I would appreciate it if you can write more article about this. We have the same opinion about this, so I think that you may have the same interest in
    [url=]mbt shoes[/url]
    [url=]discount mbt shoes[/url]
    [url=]emuboots cheap[/url]

  • saurabh shah

    It is not working , even f i do not enter captcha , contact us forms send the mesage and says thank page.

  • Curt

    I did it but nothing happened for some reason

  • Zinovsky

    Now there is a nice plugin available that integrate Recaptcha easy way, you can download it from this link :

  • Nemanja Radevic

    nice tutorial can this be used in a yootheme with yoologin ?

    please advise


  • Kamal

    thanks very much, this plugin worked very well for me. Cheers!

  • Michael

    Thank you so much for this. I really appreciate it. Got it working in seconds!

  • Pingback: nike air max()