Blocking unwanted bots with NGINX
# bloc unwanted bots if ($http_user_agent ~ (Baiduspider|AhrefsBot|YandexBot|MJ12bot|linkdex|SWEBot|Exabot|Ezooms|Sosospider) ) { return 403; }
# bloc unwanted bots if ($http_user_agent ~ (Baiduspider|AhrefsBot|YandexBot|MJ12bot|linkdex|SWEBot|Exabot|Ezooms|Sosospider) ) { return 403; }