I created a custom rule called “Country Block” to give all visitors outside of Luxembourg a managed challenge. I noticed that my page can not be found in google search anymore and saw in Google Search Console that no pages are indexed. Uploading a sitemap returned a 403 error. I paused Cloudflare and managed to upload the Sitemap with no problems.
What I read from similar topics here in the forum is that people say the problem doesn’t come from Cloudflare itself, so I am wondering which settings I have to adjust to not block “good bots” and still prevent unusual (scam) traffic from countries, thus giving a managed challange to all but luxembourgish visitors.
This is an expected behaviour and event for the Custom WAF rule which you’ve applied with expected error code.
If you’d want only Google and Bing to index your submitted sitemap.xml file to the Google Search Console/Bing Webmaster Tools and visit robots.txt file, while block everyone else (including yourself) to access the same file, I’d suggest looking at by post from below:
So the 1st rule would be as from above post, while the 2nd rule would me Managed Challenge action for everyone except if country is not Luxemburg.