Hi, I am trying to prevent hotlinking of images from my various websites, however I do not want to block , hinder or in any way affect what google does.
I initially set up an htaccess file which allows google and other search engines to do what they want but blocks others from hotlink. This should have been ideal except that it does not work with Cloudflare .
The generic block everything hotlink protection offered by Cloudflare is no good because it would interfere with google and it is absolutely critical that Google is unhindered. I would rather give up on the idea than mess with google.
Anyway, i have read everything I can find on the Cloudflare community and it seems my best hope lies with something called âworkersâ. There is a sample of hotlink protection code at https://developers.cloudflare.com/workers/recipes/hotlink-protection/ but unfortunately this is of the block everything variety. Is there a template in existence which blocks hotlinking but allows google to hotlink?
Unfortunately I am not a programmer and there is little chance of me figuring out the necessary lines of coding. I can manage copy and paste and I can duplicate lines to add different search engines which is what I did with the htaccess. Anything more complicated is beyond me.
Any help appreciated.