This document contains information to resolve the issue of images not displaying on a subdomain when Hotlink Protection is active in cPanel.
If you uploaded your site to a subdomain and everything is visible except the images, the most common cause is Hotlink Protection. This tool prevents other sites from displaying your files using your monthly bandwidth, but it only allows addresses that are on its list. If the subdomain is not on that list, the server blocks its images.
Access: log in to cPanel from the client portal → Log in to cPanel, or at https://yourdomain.com/cpanel. Then open Security → Hotlink Protection.
Solution: authorize the subdomain
- Check that protection appears as enabled. If it is disabled, the issue has another cause: consult the Common issues section.
- Under URLs to allow access, add one line for each variant of the subdomain:
http://sub.yourdomain.com https://sub.yourdomain.com http://www.sub.yourdomain.com https://www.sub.yourdomain.com
- Check that the variants of the main domain, the other domains that use those images, and the address you use to access cPanel are also included.
- Check the extensions in the Block direct access for the following extensions field, for example
jpg,jpeg,gif,png. If you want an image to be openable by typing its address in the browser, check Allow direct requests. - Click Submit.
- Reload the site without cache: Ctrl + F5 on Windows or Cmd + Shift + R on Mac.
Alternative: if you do not need the protection, you can click Disable. Keep in mind that disabling it erases the list of allowed URLs: copy it beforehand if you plan to activate it again. Without protection, other sites will also be able to display your images using your bandwidth.
Common issues
- Images still do not display: check that the path matches the exact filename, including uppercase letters. On the server,
Photo.JPGandphoto.jpgare different files. - 403 error when opening the image: check that the file has
644permissions and the folder has755. - Images display on your computer but not on others: it may be the cache of the browser or a CDN service you use. Clear the cache and try again.
If the problem persists, open a ticket from the client portal or consult via the site's online chat.
