This article provides you with steps to use Cloudflare DNS.
When using Cloudflare DNS, Cloudflare starts filtering (bad bots, hack attempt) all the request coming to your website. There are few more things involved in between, but in short, all the traffic which comes to your site goes through Cloudflare, and it blocks any spam.
Create a Cloudflare account
Add a domain to Cloudflare