This is an old revision of the document!


How to setup comodo on LiteSpeed Web Server with cPanel

Comodo is a Mod_Security rule set create by the Comodo Team. It provides real time protection for web apps running on the LiteSpeed Web Server, e.g.: - Protect sensitive customer data - Meet PCI compliance requirements - Block unauthorized access - Prevent SQL injection and Cross Site Scripting (XSS) attacks

  1. Signing-up for a Comodo User Account at here
  2. Install cwaf script
     wget https://waf.comodo.com/cpanel/cwaf_client_install.sh
     sh cwaf_client_install.sh
  3. Install step by step with prompt window, it will detect which web server is running (Apache, LiteSpeed or Nginx)
  1. Login WHM control panel, search comodo from search bar. You will see the main Comodo WAF Plugin Dashboard
  2. Click on tab Configuration and update your CWAF credentials
  3. Click on tab Main and update rule versions
  4. Then, you will see current rules version shows Latest version
  1. After setup comodo, you may need to restart LiteSpeed Web Server
  2. To check CWAF for protection, send the request as shown below:
    http://$server_domain/ ?a=b AND 1=1, server will response 403 status code
  1. Run uninstall script
    cd /var/cpanel/cwaf
    bash /var/cpanel/cwaf/scripts/uninstall_cwaf.sh
  2. Enter ansewer[y/n] y
  3. Then Comodo WAF should be gone after that.
  • Admin
  • Last modified: 2017/09/05 17:38
  • by Eric Leu