# Drupal CMS Anti-Spam

## Description

The Drupal CMS Anti-Spam recipe provides anti-spam and anti-abuse functionality for Drupal sites. It combines CAPTCHA challenges with honeypot techniques to protect forms from automated spam submissions.

## Included Modules

Brings in the following core and contributed modules to your site:

| Module                                                                 | Purpose                                                                                    |
| ---------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
| [**CAPTCHA**](https://www.drupal.org/project/captcha)                  | Provides the CAPTCHA API for adding challenges to arbitrary forms.                         |
| [**Friendly Captcha**](https://www.drupal.org/project/friendlycaptcha) | Protect your website from spam and abuse while letting real people pass through with ease. |
| [**Honeypot**](https://www.drupal.org/project/honeypot)                | Mitigates spam form submissions using the honeypot method.                                 |

## Configuration Input

This recipe accepts the following configuration input during installation:

* **site\_uuid**: Retrieved from `system.site` configuration. Used to configure anti-spam settings specific to the site instance.

## Installation

Apply the recipe using Drush:

```bash
ddev drush recipe ../recipes/drupal_cms_anti_spam
```

## Usage

Once installed, CAPTCHA and honeypot protections are automatically applied to site forms. The Friendly CAPTCHA module provides a user-friendly, privacy-respecting challenge that does not rely on third-party tracking services. Honeypot adds invisible fields that catch automated bots without affecting the experience for real users.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.varbase.vardot.com/developers/understanding-varbase/drupal-cms-recipes/drupal-cms-anti-spam.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
