Allow Google and Pinterest in hotlink protection

Hello,
there is already a Workers demo script for hotlink prevention:
https://developers.cloudflare.com/workers/templates/snippets/hotlink-protection/
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.

2 Likes

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