Skip to content

Comodo CWAF versus OWASP CRS for cPanel ModSecurity

A side-by-side of the two rule sets cPanel admins reach for, with concrete reasons to pick one or run both in different modes on the same host.

The two ModSecurity vendors most cPanel admins ever install are OWASP CRS and Comodo CWAF. They are not equivalent, and the question of “which one” comes up every time a new operator inherits a server. The honest answer is they cover different ground and many shared hosts run a thin slice of both.

What’s happening

OWASP CRS is generic, application-agnostic, paranoia-tiered, and aggressively maintained by a public project. Comodo CWAF skews toward known-CVE protection for popular CMSes — WordPress, Joomla, Drupal, Magento — and tends to ship narrower rules with less collateral damage on noisy admin endpoints. Comodo is free with a registration step; CRS is fully open. Neither replaces the other.

How to verify

whmapi1 modsec_get_vendors
whmapi1 modsec_get_rules vendor_id=OWASP3 | head -30
whmapi1 modsec_get_rules vendor_id=comodo_apache | head -30
grep -c "Comodo WAF" /usr/local/apache/logs/modsec_audit.log
grep -c "OWASP_CRS" /usr/local/apache/logs/modsec_audit.log

If a server has both vendors enabled, look at which one is actually firing on real traffic before deciding to drop either.

The fix

  1. If you can only run one and the workload is mostly WordPress: start with Comodo CWAF. Fewer false positives on /wp-admin/, narrower CVE focus.
  2. If the workload mixes custom apps and CMSes: start with OWASP CRS at paranoia 1, tune, then move to paranoia 2.
  3. Running both is fine if you disable overlapping families: load CRS for generic injection/XSS coverage, load Comodo only for the CMS-specific groups.
  4. Never leave both at default — duplicate detections inflate the audit log and make false positives twice as hard to diagnose.
  5. Revisit the choice quarterly. CRS releases minor versions on a steady cadence; Comodo updates ship through WHM when the vendor publishes.

For ongoing rule-set audits and per-account exclusions, Stack Harbor handles this under cPanel/WHM management.