To counter spam, Magento 2 store owners could use CAPTCHA at registration and login pages. Read the process of enabling CAPTCHA on both pages in Magento 2.