Custom WAF rule to allow only specific country and google's indexing robots

If I set a WAF rule to allow access to my site only for users from a specific country, does that mean I am essentially blocking Googlebot from indexing my site and ruining my SEO? Is it possible to add indexing bots as exceptions? Or can Googlebot handle Cloudflare challenges on its own?
Was this page helpful?