Jump to main content Jump to doc navigation

What is Rampart?

Rampart is a robust anti-spam tool for MODX Revolution. It can be used to help prevent spam registrations and postings on your MODX Revolution site, as well as provides DNS blacklisting. It can also currently be integrated into either the Register snippet, Quip comments, or into any FormIt-powered form.


  • MODX Revolution 2.0.7 or later
  • PHP5 or later
  • mcrypt PHP extension
  • Login Extra, version 1.5.2 or later


Rampart was written by Shaun McCormick and first released on January 26th, 2011.


It can be downloaded from within the MODX Revolution manager via Package Management, or from the MODX Extras Repository, here: https://modx.com/extras/package/rampart

Development and Bug Reporting

Rampart is stored and developed in GitHub, and can be found here: https://github.com/modxcms/Rampart

Bugs can be filed here: https://github.com/modxcms/Rampart/issues


Rampart currently comes with 3 Snippets:

It also comes with a Custom Manager Page, where you can manage your banlist, moderate flagged users, and view attempts your bans caught.

Enabling Project Honey Pot DNS Blacklisting

Rampart comes with integration for Project Honey Pot, a anti-spam service that prevents spam harvesters and comment spammers access to your site entirely. Through the RampartWall plugin, Rampart will completely prevent access to your site for IPs flagged by Project Honey Pot, and will automatically add them to the Rampart Ban list.

You can enable the HoneyPot integration by setting the appropriate values for the following System Settings:

  • rampart.honeypot.access_key - Set this to your Access Key you received for your HoneyPot account. This is required for the integration to work.
  • rampart.honeypot.enabled - When you've setup your Access Key, set this to 'Yes' to enable the HoneyPot integration. You can set this to 'No' at any time to disable HoneyPot checks.

See Also

  1. Rampart.hook.RampartFormIt
  2. Rampart.hook.RampartQuip
  3. Rampart.preHook.RampartRegister

Support the team building MODX with a monthly donation.

The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.



$0 per month—let's make that $500!

Learn more