# Adding CAPTCHA protection to a PrestaShop site

> Stop spam and bot submissions on your PrestaShop store by installing and configuring a CAPTCHA module such as SlideCaptcha.

Source: https://helpcenter.ruachost.com/apps/prestashop/adding-captcha-protection-to-a-prestashop-site/

CAPTCHA protection helps secure your PrestaShop store by reducing spam and blocking automated bots. On **ruachost.com**, you can add CAPTCHA support using modules such as **SlideCaptcha** or other third‑party solutions.

## Why Use CAPTCHA?

- Prevents spam submissions in contact forms.
- Protects login and registration pages from brute‑force attacks.
- Reduces malicious automated actions on your store.

## Steps to Add CAPTCHA Protection (Example: SlideCaptcha Module)

### Step 1: Download the Module

1. Visit the SlideCaptcha PrestaShop module page.
2. Add the module to your cart and complete the checkout process.
3. Download the `slidecaptcha.zip` file to your local computer.

### Step 2: Install the Module

1. Log in to your PrestaShop site as the **administrator**.
2. On the top menu, click **Modules → Module Manager → Upload a module**.
3. Select the `slidecaptcha.zip` file and upload it.
4. PrestaShop installs the module and displays the configuration page.

### Step 3: Configure the Module

1. On the SlideCaptcha configuration page, copy the following line of code:

   ```
   {include file="$tpl_dir./../../modules/slidecaptcha/slidecaptcha.tpl"}
   ```
2. Open the template file for the form you want to protect (e.g., `themes/default-bootstrap/contact-form.tpl`).
3. Paste the code where you want the CAPTCHA to appear (usually before the submit button).
4. Save the file.

### Step 4: Test the CAPTCHA

- Visit the form page (e.g., contact form).
- You should only be able to submit the form after completing the CAPTCHA (dragging the slider).
