> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.serverfreak.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Disable Mod_Security in the Custom Http Config File

|| NOTE: You need to be the server admin in order to disable the mod_security in the custom http config file.

1. First log into the Direct Admin control panel using admin credential. Then click on “Custom HTTPD Configurations”

![](https://storage.crisp.chat/users/helpdesk/website/0e35a1b5-ce97-4d12-a27e-1bbafd0ae641/ee5de92a-77b7-4d8f-8960-aa107d8100c3.png)





2. In the page, search for the domain name and add the following lines to the blank space.
**<LocationMatch /*>**
**  <IfModule mod_security2.c>**
**    SecRuleEngine Off**
**  </IfModule>**
**</LocationMatch>**