Stop other sites using your images
Hotlinking is when another site embeds your image straight from your server. Visitors see it on their page, and your hosting does the work. Hotlink protection blocks that.
Turn it on
- Open Account → Hosting → your site → Files. Under Folder and server rules, click Manage, and find Hotlink protection.
- Check Sites allowed to show your files. Your own domains are already listed. Add any others that should show your files, such as a partner site or a newsletter tool, one address per line.
- Choose the file types to protect, such as
jpg, jpeg, gif, png, webp. - Allow direct requests so people can still open an image address in their browser or an email program.
- Click Save, then turn on the Hotlink protection switch.
Equivalent .htaccess rules
# Block hotlinking of images except from our own domains
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?example\.ca [NC]
RewriteRule \.(jpe?g|png|gif|webp)$ - [F,NC]
If something goes wrong
- Images vanish from social media shares or newsletters: add those domains to the allow list, or allow direct requests.
- Images fail on your own subdomain: add the subdomain.
- CDN in front of your site: add the CDN's domain.
See Website statistics to check whether bandwidth use dropped.
Still stuck? Ask us and we'll walk you through it.