How to protect or restric image access from cloudflare R2

For Workes & Pages, what is the name of the domain?

What is the issue or error you’re encountering

I want to restrict access to Cloudflare R2 images

What are the steps to reproduce the issue?

I have 60GB images stored on cloudflare R2, I want them only to display on my website suppose xyz.com, and when someone try to open the image link they should get 403 access error, Is it possible to do this.
How can I do this with cloudflare R2, also my website is hosted on cloudflare pages.

I think this might be possible with Cloudflare Workers. I ran your request through Perplexity, and AI seemed to suggest this:

1 Like

this worked, thanks

1 Like

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