Author Topic: nginx mod-security block semrushbot  (Read 1370 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
nginx mod-security block semrushbot
« 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. '"