Install ModSecurity Rules to Plesk

Installing

Downloading rules

Login to My Account page: https://malware.expert/my-account/

Download Rules to local computer from Plesk Icon in My Subscriptions page:

Installing Rules to Plesk Server

Login to Plesk Control panel and Search Web Application Firewall:

Configure Custom Rules Set (Change rule set):

Upload Custom Rules set and enable:

That’s it, rules are now enable and http daemon restart itself!

Custom modification’s

Installation Directory

[root@plesk custom]# pwd
/etc/httpd/conf/modsecurity.d/rules/custom
[root@plesk custom]# ls -lt
total 8
-rw-r--r--. 1 root root 248 Jan  1  2017 00_malware_expert_initialization.conf
-rw-r--r--. 1 root root 114 Jan  1  2017 01_malware_expert_rules.conf

Extra Rules

[root@plesk custom]# nano -w 01_malware_expert_rules.conf

01_malware_expert_rules.conf

SecRemoteRules 172xxxxxxxxxxxxxxxxxxxxx.xxxxxxx5 https://rules.malware.expert/download.php?rules=generic&extra=rbl