For some businesses, the images are the product. A stock photography library, a news agency, a property listings portal with professionally shot interiors, an online course with diagrams, or a subscription magazine all pay for every picture they publish. And every picture on the web is one right-click, one scraper or one hotlink away from being used by somebody who did not pay for it.
No technology makes a displayed image impossible to copy. Once pixels are on a screen, they can be screenshotted. What you can do is make unauthorised use expensive, visible and limited, keep the files you sell off the public web, and make sure you are not paying the bandwidth bill for somebody else's site. This article goes through the controls ZawCloud Images offers, roughly in the order you would reach for them, and is honest about what each one stops and what it does not.
1. Stop other sites embedding your images
Hotlinking is when another site puts your image URL in its own <img> tag.
Its visitors see your image and you pay for the delivery. It is the most common form of
misuse, and the easiest to stop.
The Bot & Hotlink Shield, on the console's tab of the same name, lets you
list the sites allowed to embed your images. A request whose Referer names any
other site is refused with a 403 before the cache or your origin is touched. You
can choose to return a small grey placeholder instead of an error, so the other site shows an
empty box rather than a broken-image icon, which tends to get the embed removed quickly.
Two things are let through on purpose. Search engines and link-preview fetchers (Googlebot,
Bingbot, Slack, Discord and others) can pass, if you allow them, so your images still appear
in image search and in shared links. And requests with no Referer at all pass by
default, because native mobile apps and many privacy-conscious browsers send none. Strict
mode refuses those too, if your images are only ever shown on your own pages.
2. Refuse scrapers and AI crawlers
The same shield has two more switches:
-
Block bots refuses known scrapers, SEO crawlers, headless browsers and
HTTP libraries, and any request with no
User-Agent. You can add patterns of your own. - Block AI crawlers refuses GPTBot, ClaudeBot, CCBot, Bytespider, PerplexityBot and similar. It is a separate switch because "may my images go into AI training sets and answers" is a different decision from "may scrapers download my catalogue", and plenty of publishers answer them differently.
Be clear about the limits. Every one of these checks reads a header the client chooses. They stop well-behaved crawlers and lazy scrapers, which is most of the volume. A determined scraper that sends a real browser's headers gets through. We explain why in Referer is not a lock.
3. Publish previews, not the files you sell
The most effective protection is structural: the full-resolution file you license is never at an address the public delivery hostname can reach.
Your delivery hostname identifies your account by itself, which is what lets an ordinary
<img> tag work with no key in it. The flip side is that any object under
your configured origin can be requested through it, at any size you permit. Even with
presets-only mode, a URL with no parameters at all returns the stored file as it is. So
arrange your storage in two parts:
- Preview masters in the bucket or folder that is the account's origin. These are copies already reduced to the largest size you are willing to show for free, say 1600 pixels on the long edge. Whatever anybody does with the URL, they cannot get more than that.
- Licensed originals in a separate private bucket that is not configured as any origin. Your download endpoint checks the licence and then hands the buyer a short-lived pre-signed link from the storage provider itself, or streams the file. They never go through the public image CDN.
If you want the CDN to resize licensed files too (for example, to sell several sizes), keep them under object paths nobody can guess, such as a random id per file, and issue those URLs only to buyers. Treat this as obscurity rather than access control: anyone who has one of those URLs can use it.
4. Watermark the previews
Stock libraries and agencies usually show a watermarked preview while people browse. The edge can draw the mark from the preview master, so there is no second set of files to maintain:
/v1/library/48213.jpg?w=1000&watermark=© Northlight Images&wmpos=center&wmopacity=40
The text is sized relative to the output's shorter edge (wmsize), so it is the
same proportion on a thumbnail and on a large preview, and it is drawn to stay legible over
light and dark parts of any photograph. For a logo instead of text, overlay
composites an image from your own origin, with its own position, opacity and size.
Put the watermark in named presets (for example thumb and
preview) and turn on presets only for the account. Every
transformation parameter outside a preset is then refused, including an attempt to override
the mark with an empty watermark=. Note the one exception from the section
above: a bare URL with no parameters still returns the stored file unmarked. That is why the
preview master, not the licensed original, is what lives at the origin.
5. Signed URLs: links that expire and cannot be edited
A signed URL carries a signature, made with a secret only your server holds, over the image path and every transformation parameter:
/v1/library/48213.jpg?w=1200&exp=1786901162&kid=…&sig=…
The node checks the signature before doing anything else, which gives the URL you issued three properties:
- It cannot be edited. The width, the format, the watermark and the path are all inside the signature. Any change makes the signature fail.
-
It expires.
expis a timestamp after which the URL stops working by itself. -
It can be bound to one viewer. An optional
cipparameter ties the URL to the client's IP address (the exact address for IPv4, the /64 network for IPv6, because privacy extensions rotate the rest). Shared with somebody else, it returns403.
Know what that does not do. A signature protects the URL that carries it. It does not
make the same image unavailable in unsigned form on your account's delivery hostname, because
the hostname authenticates the request on its own. Signed URLs are the right tool for
time-limited links, for keeping a delivery API key out of pages when you serve from a node's
/v1/ address, and for proving a link came from you. Use them together with the
storage layout in section 3, not instead of it.
The console's Signed URLs tab shows the signing secret for each API key. The algorithm is a standard HMAC-SHA256 over a canonical string, so it takes a few lines in any backend language. The signature, expiry and key id are not part of the cache key, so many viewers with different signed URLs for the same image and size share one cached rendition.
6. Do not hand out more pixels than you sell
A preview should be big enough to judge and too small to use. Permitted output
sizes on the Limits tab makes that a rule rather than a convention: if the only
widths you list are 300, 600 and 1000, a request for w=1600 is refused before the
origin is contacted. Keep the origin itself private, with edge nodes reading it through a
read-only key (see Serving images from a
private bucket), so nobody can skip the CDN and fetch the masters directly.
7. Strip what identifies your photographers
Professional images often carry the photographer's name, contact details, camera serial numbers and sometimes location in their metadata. Delivered images have all of it stripped by default, so previews do not leak it. Licensed downloads delivered from your own endpoint keep whatever metadata you choose to leave in the file.
8. See what is happening
Protection you cannot observe is protection you cannot tune. Every refusal is logged with its
reason (hotlink_blocked, bot_blocked,
ai_crawler_blocked, preset_required, a failed signature), and the
access logs can be downloaded as one file per day. The Analytics & Traffic tab lists your
top referring sites, which is the fastest way to find out who is embedding your images before
you decide whether to block them. A request.failed webhook can feed refusals into
your own alerting.
Choosing a level
| Business | Typical setup |
|---|---|
| Publisher with free articles | Shield with your domains allowed, AI crawler blocking as a policy choice |
| Property or classifieds portal | Shield, bot blocking, permitted sizes, metadata stripping |
| Stock library or agency | Preview masters at the origin, watermarked presets with presets only, licensed originals in a separate bucket served by your own download endpoint |
| Paid course or subscription | Shield in strict mode, unguessable object paths, short-lived signed URLs issued to logged-in users |
None of these settings changes your URLs for legitimate visitors, and all of them can be switched on and off from the console without a deploy. Start with the shield, look at the referrer list for a week, and tighten from there.