Hotlink protection in Plesk

Hotlinking is when another site embeds your images or files with a direct link. Visitors view them on that site, but your hosting serves the files. Hotlink Protection blocks such links for the selected file types.

Where to find it: the domain card, the Dashboard tab, the Security group, Hotlink Protection.

How to enable it

  1. Check Enable hotlink protection.
  2. Review Protected files extensions. By default it lists image types: bmp, gif, jpg, jpeg, png, webp, svg and others. You can add your own, such as mp4 or pdf, separated by spaces.
  3. In Addresses of friendly websites, add the sites allowed to display your files. Add one more adds another line.
  4. Click Save.
Hotlink Protection: extensions and friendly websites
Hotlink Protection: extensions and friendly websites

Add every address of your own site to the friendly websites: with and without www, subdomains and domain aliases. Otherwise images may stop showing on your own site.

Testing

Open a page of your site — images must display. Then embed an image link on another site or in an online editor: it must not load.

Common mistakes

  • Images disappeared on your own site — one of the site addresses (www, subdomain, alias) or the CDN address is missing.
  • Link previews in social networks and messengers do not show — those services also count as other sites. If previews matter, add them as friendly sites or do not protect jpg/png.
  • Protection seems not to work for old links in the browser cache — test in a private window.
Questions and answers
No. A visitor can still save an image. The protection only prevents displaying it on another site via a direct link.
Uncheck Enable hotlink protection and click Save.