ModSecurity is a security firewall that some hosting providers enable by default, and it can sometimes block certain migration processes, such as installing the LitExtension Connector or transferring data, by mistaking them for suspicious activity. If you run into unexpected errors during your migration, disabling ModSecurity temporarily may help.
Here’s how to disable it, depending on your hosting setup:
- Via cPanel: Log in to cPanel, go to the Security section, and click ModSecurity. From there, you can toggle it off for your specific domain.
- Via .htaccess file: If you don’t have direct access to a ModSecurity toggle in cPanel, you can add the following line to your store’s .htaccess file, located in your root folder:
SecFilterEngine Off SecFilterScanPOST Off
Or, for newer ModSecurity versions:
<IfModule mod_security2.c> SecRuleEngine Off </IfModule>
- Contact your hosting provider: Some hosts manage ModSecurity at the server level, meaning you won’t be able to disable it yourself. In this case, reach out to your host’s support team and ask them to disable it for your domain, or whitelist LitExtension’s migration process specifically.
We recommend re-enabling ModSecurity once your migration is complete to keep your site protected. If you’re not comfortable making these changes yourself, our Support Agents can guide you through it.
If you have other questions or inquiries, please contact our Support Agents via live chat or email us at [email protected].