Allow Google and Pinterest in hotlink protection

there is already a Workers demo script for hotlink prevention:

but could Google images and Pinterest be allowed to show images ?
Can that be added to the script ? ( Is it needed to add ? )

The script is a general block on content type.

You could take advantage of this code.

And allow if “Google images and Pinterest” bots.

1 Like