Magento 2 Spam and Bot Blocker Extension is the proven solution to avoid spam bots in your store. It enables admin to block a specific user-agent string and unique IP address.