Block Ahrefs and Majestic BOT in Firewall Rules (Known Bots)

I just tried the new Firewall Rules. They are great. I blocked wp-login.php URI path on entire domain from all bots.

But I also wanted to block Ahrefs and Majestic Bots to stop visiting my site that are the part of Cloudflare’s Known Bots. When i block Known Bots, it blocks Google, Bing, Yandex, etc too.

How can I only block Ahrefs and Majestic bots?

Either by IP or by user agent.

This topic was automatically closed after 31 days. New replies are no longer allowed.