Cloudflare Docs
Cloudflare Image Optimization
Edit this page on GitHub
Set theme to dark (⇧+D)

Make an image private

You can require an image to only be accessible with a signed URL token. To make an image private, pass a JSON blob with the requireSignedURLs property set to true at the time you request a one-time upload URL:

curl --request POST \
--url<ACCOUNT_ID>/images/v1/direct_upload \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <API_TOKEN>' \
--data '{

If an image is marked to require signed URLs, it can only be accessed using a signed URL token or using a Variant with Always allow public access property checked.