Divi WordPress Theme

Topic: disable mod_security for a domain  (Read 12495 times)

Offline Alex

  • New Member
  • *
  • Posts: 32
  • iTrader: +0/-0
    • View Profile
disable mod_security for a domain
« on: December 28, 2008, 04:00:27 PM »

I have recently installed mod_security on the cPanel server but I want to disable it for one of the domain hosted on that server. Is it possible to disable it for a domain or I have to disable it for all the domains ?


VPS Hosting - AccuWebHosting

Offline Kailash

  • Web Hosting Master
  • *****
  • Administrator
  • Posts: 610
  • iTrader: +153/-0
    • View Profile
Re: disable mod_security for a domain via .htaccess
« Reply #1 on: December 30, 2008, 09:55:57 AM »
Yes, you can disable it for a domain from .htaccess. Just add the following code in .htaccess of the domain:

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off

This will work only if you have old version of mod_security installed on the server. You cannot disable mod_security2 using .htaccess. For more details to bypass mod_security2, kindly refer http://blog.webhostingdiscussion.net/site-and-server-security/wordpress-and-mod_security2-issues.htm

However, for security majors it is not recommended to disable it.

« Last Edit: March 12, 2010, 12:07:10 PM by Kailash »
Divi WordPress Theme