Hi,
Looking for some working set of Mod_security rules to prevent spam registrations and comments on wordpress sites on cpanel server
did some search and found following set of rules -
But this does not seem to be working coz not a single IP was blocked, any help from experienced admins is appreciated.
Thanks
Looking for some working set of Mod_security rules to prevent spam registrations and comments on wordpress sites on cpanel server
did some search and found following set of rules -
Code:
#comments blacklist
SecAction "id:400000,phase:1,initcol:IP=%{REMOTE_ADDR},pass,nolog"
SecRule IP: spam "[USER=3202]@gt[/USER] 0" "id:400001,phase:1,chain,drop,msg:'Spam host %{REMOTE_ADDR} already blacklisted'"
SecRule REQUEST_METHOD "POST" chain
SecRule REQUEST_URI "\/wp-(comments-post|trackback).php"
SecRule REQUEST_METHOD "POST" "id:'400010',chain,drop,log,msg:'Spam host detected by zen.spamhaus.org'"
SecRule REQUEST_URI "\/wp-(comments-post|trackback).php" chain
SecRule REMOTE_ADDR "@rbl zen.spamhaus.org" "setvar:IP.spam=1,expirevar:IP.spam=604800"
Thanks
Last edited by a moderator: