Control Web Panel

Security => Mod_Security => Topic started by: russromei on December 05, 2022, 08:56:46 AM

Title: nginx mod-security block semrushbot
Post by: russromei on December 05, 2022, 08:56:46 AM
I'm trying to block crawlers and bots, specifically semrushbot
I am using centos on nginx
What path and file would I add this to?

SecRule REQUEST_HEADERS:User-Agent "@contains semrushbot" "id:'1000001',t:none,t:lowercase,deny,nolog,msg:'BAD BOT - Detected and Blocked. '"

DO I NEED THIS ONE?
SecRule REQUEST_HEADERS:User-Agent "@contains semrushbot/7" "id:'1000001',t:none,t:lowercase,deny,nolog,msg:'BAD BOT - Detected and Blocked. '"