Adding a CAPTCHA to your website helps protect it from spam, fraud, and automated abuse. It works by presenting a task that is easy for humans but difficult for bots—such as selecting images containing traffic lights or buses. This effectively blocks bots while allowing real users through.

Newer CAPTCHA versions can even run invisibly in the background using behavioural analysis, meaning users often don’t need to complete any challenges at all.

Follow this step-by-step guide to add CAPTCHA protection to your website hosted by GoHosting.

Step 1: Choose a CAPTCHA Provider

There are many CAPTCHA solutions available, with Google's reCAPTCHA being the most widely used. Choose the solution that best fits your website’s needs. Some popular options are:

  • Google reCAPTCHA (v2 and v3) — Trusted and widely adopted

  • hCaptcha — Privacy-focused alternative

  • Turnstile by Cloudflare — Invisible and lightweight

Step 2: Register your website with the provider

Once you’ve chosen a provider:

  1. Go to the provider’s site (e.g., google.com/recaptcha/admin).

  2. Sign in and register your domain.

  3. Choose the type of CAPTCHA (e.g., reCAPTCHA v2 or v3)

  4. Accept the terms and conditions.

Once registered, you'll receive a "Site Key" and "Secret Key". Keep these handy.

Step 3: Add CAPTCHA to your site

The method for adding CAPTCHA will depend on the type of website or CMS you’re using.

For WordPress

  1. Log in to your WordPress admin dashboard.

  2. Go to "Plugins", then click "Add New".

  3. Search for plugins like:
    • reCaptcha by BestWebSoft

    • Advanced Google reCAPTCHA

    • WPForms (includes CAPTCHA integration)

  4. Click “Install” and then “Activate” the plugin.

  5. Enter your site key and secret key in the plugin settings.

  6. Select which forms or pages to protect (e.g., login, registration, contact forms).

For custom HTML/PHP sites

  1. Log in to your GoHosting cPanel.

  2. Scroll down to the "Files" section and click "File Manager".

  3. Navigate to the directory where your site files are located (usually public_html).

  4. Open the HTML or PHP file where you want to add the CAPTCHA.

  5. Copy and paste the CAPTCHA integration snippet (provided by your CAPTCHA provider) into the appropriate part of your HTML form.

  6. Add the server-side verification script (usually in PHP), following the instructions from your CAPTCHA provider.

  7. Save your changes.

Step 4: Verify CAPTCHA is working

Visit your website and verify that the CAPTCHA appears where expected—such as on forms, comment sections, or login pages. Submit the form to confirm it successfully prevents automated entries and allows valid human submissions.