Advertising sustains the DA. Ads are hidden for members. Join today

On this page

Security in Drupal

Tarpit spam trap

Last updated on
8 October 2025

This documentation needs review. See "Help improve this page" in the sidebar.

The Tarpit module allows you to build a tar pit on particular URL that you can define.
When the spammer visit those links, a special page with text and links is displayed.

If the bot continues crawling those links, after a depth limit, an action that you can define is triggered.

The module is bundled with multiple submodules that you can enable according to your needs.

Drupal 10 version

A release for modern Drupal (10/11) is not listed on the project page, but there actually is a 8.x-1.1 release which works well after a patch #2833166: Coding Standards for modern Drupal.

Help improve this page

Page status: Needs review

You can: