Hotlink protection in cPanel

Hotlinking is when another site shows your image with a direct link to your hosting. The image loads from your site, while the visitors are theirs.

  1. Open "Hotlink Protection" (group "Security").
  2. Check "URLs to allow access" - your domains are listed there. The panel adds them itself; add your other sites if needed.
  3. In "Block direct access for the following extensions", list file types separated by commas, for example jpg,jpeg,gif,png,webp.
  4. Click "Enable".
Hotlink protection settings
Hotlink protection settings
  • "Allow direct requests" lets a file open when its address is typed straight into the browser. Usually worth turning on.
  • "Redirect the request to the following URL" - what to show instead of the image on the other site. Can stay empty.

Add all addresses of your own site (with and without www, http and https) and services that need your images, such as newsletter tools or marketplaces, to the allowed list. Otherwise the images disappear for them too.

Questions and answers
Add every address of your site (with and without www, http and https) to "URLs to allow access".