How To Put A Captcha

Table of contents:

How To Put A Captcha
How To Put A Captcha

Video: How To Put A Captcha

Video: How To Put A Captcha
Video: How Does CAPTCHA Work? 2024, December
Anonim

Spam via comment forms is a headache for every webmaster. Disabling anonymous commenting and introducing forced registration sharply limits the filling of the resource with user-generated content, reduces user loyalty and the intensity of crawling the site by search engines. Therefore, usually there is nothing left to do but put the captcha.

How to put a captcha
How to put a captcha

It is necessary

  • - Internet connection;
  • - modern browser;
  • - access to the administrative panel of the site;
  • - possibly access to the site via FTP.

Instructions

Step 1

Go to the reCAPTCHA project page of the Google code service. Open the address in the browser https://code.google.com/intl/ru/apis/recaptcha/. Use your Google account when working with the service. If you are not logged in yet, please log in by clicking on the Sign In link in the upper right corner

Step 2

Subscribe to the reCAPTCHA service. Click the Sign Up link located in the Getting Started section. On the page that opens, click on the Sign up Now!

Step 3

Create keys for using the service, mapped to one or more domains. On the current page, in the Domain field, enter the domain name of the site on which the captcha should be used. If captcha is supposed to be used on several sites, and their list is not known in advance, activate the Enable this key on all domains (global key) option. Click the Create key button.

Step 4

Get and save the public and private keys to use the service. Copy the contents of the Private Key and Public Key fields of the loaded page. Save them in a text file for future reference.

Step 5

Check out the documentation for installing captcha. Open the page with the address in the browser https://code.google.com/intl/ru/apis/recaptcha/intro.html. Select the section corresponding to the CMS you are using, the forum engine or the technology on which the site is built

Take a look at the Applications section. It contains links to descriptions of captcha installation with popular CMS and forums. As a rule, for popular engines there are add-on modules that can be downloaded and installed within a few minutes.

The Programming Environments section contains links to documentation on using captcha with popular programming languages and frameworks. As a rule, these sections contain ready-made solutions that can be easily integrated into your site.

Step 6

Place the captcha on the site. Use one of the solutions found in the documentation. Download the add-on module for your CMS or copy the sample code. Upload the plugin to the site, paste the code into the templates of the pages you need.

Step 7

Configure the add-on module or code block to work with captcha. If the plugin is used, log into the site's admin panel, go to its settings page, enter the public and private keys obtained in the fourth step, save the changes. If you use your own solution, correct the code so that the correct key values are passed as parameters of calls to the functions of the CAPTCHA library.

Step 8

Check if the captcha works. Open one or more pages where it is installed. Make sure it is on the page. Use the functionality of the site, for the protection of which the captcha was installed. Make sure the functionality has not been compromised.

Recommended: