Web Hosting

disable mod_security for a domain

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

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: 657
  • 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 »
Bluehost hosting Divi WordPress Theme

Disable automatic updates on Windows 2016 server

Started by ChrisBoard Windows

Replies: 3
Views: 4141
Last post February 12, 2020, 07:24:48 PM
by Lewis-H
Disable MySQL strict mode - Turn off MySQL strict mode

Started by KailashBoard MySQL

Replies: 0
Views: 3566
Last post October 18, 2014, 02:39:41 PM
by Kailash
How to enable / disable Greylisting for particular email account in Smartermail

Started by KailashBoard SmarterMail and other Email Servers

Replies: 1
Views: 7753
Last post July 15, 2009, 11:06:01 AM
by w3school
Disable catch all / default email address in cPanel / WHM

Started by KailashBoard cPanel/WHM

Replies: 0
Views: 13204
Last post July 21, 2009, 10:27:35 AM
by Kailash
Disable update now link in AwStats

Started by AlexBoard cPanel/WHM

Replies: 3
Views: 4958
Last post December 25, 2021, 07:24:43 PM
by kumkum