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. '"