Enable cloudflare hotlink protection , and allow google,bing bot

Hello, everyone. I need help hope you guys can help.
We have a shop to sell the dresses. But so many bad website using our image.
We are using the flowing code to block them. but these kind of websites getting more and more.
Is there any way to block all other sites to using our .jpg but allow googlebot , google image, bing bot, bing image.

(http.referer contains “findlocal-drivewayrepair.com”) or (http.referer contains “communitygardenclubofcohasset.org”) or (http.referer contains " loringfacts.com") or (http.referer contains “villagelodgecoron.com”) or (http.referer contains “sporthaflinger.de”) or (http.referer contains “greyminxr.com”) or (http.referer contains “promstimes.com”) or (http.referer contains “tropicalbreezefunpark.com”) or (http.referer contains “clbxg.com”) or (http.referer contains “iti.ac.pg”) or (http.referer contains “asupervip.top”) or (http.referer contains “novabetelcontabilidade.com.br”) or (http.referer contains “realtalk.nl”) or (http.referer contains “technologytoolsforteaching.com”) or (http.referer contains “dsvdedommel.com”) or (http.referer contains “goldstandardsounds.com”)
These sites are scam , and they keep using our website images.

You could try:
(not cf.client.bot and not http.referer contains "YOURDOMAIN" and not http.referer contains "GOOGLE")

1 Like

Thank you so much!

1 Like

We are a online shop, these block all of our visitors and clients. It’s not work.

Give regular Hotlink Protection a try. It’s in the Scrape Shield tab of your domain at dash.cloudflare.com

And once you enable Hotlink Protection, try this:

(not cf.client.bot and http.referer contains “YOUR_DOMAIN_PUT_HERE”) or (not cf.client.bot and http.referer contains “google.com”)

Action: Bypass - Hotlink Protection

2 Likes

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