Block bad bots in Nginx

Bots hitting your sites(especially for dynamic pages) can cause extensive resource (CPU, Memory, Connections) usage. It’s simple to drop or block badbots like MJ12bot, AhrefsBot in Nginx without using Modsecurity.