Divi WordPress Theme

disable mod_security for a domain

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

Offline Alex

  • New Member
  • *
  • Posts: 31
  • 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: 655
  • 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 »
Shopify Divi WordPress Theme
Tags:

Disable catch all / default email address in cPanel / WHM

Started by KailashBoard cPanel/WHM

Replies: 0
Views: 12751
Last post July 21, 2009, 10:27:35 AM
by Kailash
disable the catch all (default) email address in cPanel

Started by AnonymousBoard Email Management Software & Email Clients

Replies: 1
Views: 4724
Last post June 21, 2007, 08:31:34 AM
by Kailash
Disable SpamAssassin for entire cPanel server

Started by KevinBoard How Tos

Replies: 0
Views: 7260
Last post September 28, 2008, 02:31:51 PM
by Kevin
Disable BoxTrapper Spam Trap for cPanel server

Started by KevinBoard How Tos

Replies: 2
Views: 13342
Last post August 19, 2014, 12:36:35 PM
by Kailash
Disable PHP mail function on cPanel server

Started by KevinBoard How Tos

Replies: 3
Views: 21650
Last post July 21, 2014, 12:34:17 PM
by Kailash