Skip to content
  1. Extras
  2. CrawlerDetect

CrawlerDetect

MODX extra that detects web crawlers (bots) by the User-Agent header and protects forms from spam without CAPTCHA. Uses JayBizzle/Crawler-Detect.

Features

  • Form protection — block bot form submissions via FormIt preHook
  • Hide widgets from bots — don’t load chat, analytics or heavy scripts for bots
  • Accurate visitor counts — exclude bots from “online” and “views” counters

Requirements

RequirementVersion
MODX Revolution3.x
PHP8.2+

Dependencies

  • FormIt — for form protection (preHook crawlerDetectBlock)
  • FetchIt — optional, for AJAX forms
  • SendIt — optional, for AJAX forms

Installation

Install via MODX Package Manager:

  1. ManageInstall packages
  2. Find CrawlerDetect in the repository
  3. Click Install

Dependencies (JayBizzle/Crawler-Detect) are included. You do not need to run composer install on the server.

After install, Elements → Snippets will have: isCrawler, crawlerDetectBlock.

Next steps

See Quick start and Integration.