I am experimenting with crawler delays.
Step 1
# Allow these bots with a 10-second crawl delay
User-agent: Pinterestbot
Crawl-delay: 10
User-agent: GPTBot
Crawl-delay: 10
User-agent: YandexBot
Crawl-delay: 10
User-agent: bingbot
Crawl-delay: 10
User-agent: Googlebot
Crawl-delay: 10
# Disallow all other bots
User-agent: *
Disallow: /
And I've also blocked some bad bot-crawlers on an .htaccess File level. For Apache::
Step 2
# Block specific bots by User-Agent
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} AhrefsBot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} DotBot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} SemrushBot [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Bytespider [NC]
RewriteRule ^.* - [F,L]
Step 3
I've also enabled free version of Cloudfare.