My site is getting hit by spam bots.
I have read all the advice and community pages but haven’t managed to find the info I need.
My hosts gave me some bot user agents like these:
As I understand it I can use firewall rules to block these user agent strings.
But I did some research and some of the people who run these bots advise just blocking the UA name.
For example instead of blocking “AhrefsBot/6.1” I would block “AhrefsBot”.
But I am not sure if this would work with the Cloud Flare setup?
I would like to be able to do it this way if possible as it would block all bots from a site rather than just the current version to be hitting my site.
Is this possible?
I hope that makes sense. This is all very complicated for me!