Search our database

How To Check If mod_security Is On Or Off

Step 1 – Login to your web server via SSH.


Step 2 – Create a phpinfo.php in your public_html directory. Type the following command on your terminal.

vi /var/www/public_html/phpinfo.php


Step 3 – Type and save the command below into the newly created file.



Step 4 – You can view the file by typing http://yourdomain/phpinfo.php in your browser’s address bar. Once loaded, search for mod_security2 and if you can’t find such section, the module is not installed.


Affordable but Powerful Cloud Hosting Package

Check out IPServerOne’s Cloud Hosting Packages.
Contact us @ +603-6259-5625 or email @

Tags: , ,