> For the complete documentation index, see [llms.txt](https://docs.varbase.vardot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.varbase.vardot.com/developers/understanding-varbase/drupal-cms-recipes/drupal-cms-anti-spam.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
