• Welcome to Web Hosting Community Forum for Webmasters - Web hosting Forum.
 

Recommended Providers

Fully Managed WordPress Hosting
lc_banner_leadgen_3
Fully Managed WordPress Hosting

WordPress Theme

Divi WordPress Theme
WPZOOM

Forum Membership

Forum Membership

disable mod_security for a domain

Started by Alex, December 28, 2008, 04:00:27 PM

Alex

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:=

Kailash

#1
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