Divi WordPress Theme

disable mod_security for a domain

Topic: disable mod_security for a domain  (Read 12023 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 »
Hi,

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 ?

Thanks,

=:Alex:=
VPS Hosting - AccuWebHosting

Offline Kailash

  • Web Hosting Master
  • *****
  • Administrator
  • Posts: 603
  • 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
</IfModule>

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.

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