Exclude Google Search By Image from Country Block


I block most countries by a firewall roul (not ip.geoip.country in {“BR” “CA” “DE” “US” “GB” “AR” “PT” “CO”}). This works great however I noticed that I can’t use Google Reverse Image Search for my site anmore, because it gets also blocked.

Block Reason: Unknown states, other entities or organizations

Has anyone any idea how I can whitelist just this? The ip does constantly change so I need something else. This is how the requests look:




Query string

Empty query string

User agent

Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:; Google-SearchByImage) Gecko/2009021910 Firefox/3.0.7

IP address




Unknown states, other entities or organizations


You can include XX, which is the country code associated with that description (Unknown states, other entities or organizations) in your list of allowed countries, but that of course means any IP that for some reason is not yet identified by Cloudflare as coming from a specific country will be allowed in.

Alternatively, you can add to your firewall rule an exclusion to the “Known Bots” operator, so that legit crawlers such as Googlebot aren’t blocked regardless of their country or origin.

Hi @cbrandt,

Known Bots works great in my case. Exactly what I was looking for. Thanks a lot for your help!

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.