I cannot view the images on my cPanel services subdomain

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

  1. Check that protection appears as enabled. If it is disabled, the issue has another cause: consult the Common issues section.
  2. 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
  3. 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.
  4. 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.
  5. Click Submit.
  6. 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.JPG and photo.jpg are different files.
  • 403 error when opening the image: check that the file has 644 permissions and the folder has 755.
  • 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.

  • no puedo visualizar subdominio, proteccion hotlink cpanel, proteccion Hotlinking plesk, visualizar imagenes en subdominios
  • 44 Users Found This Useful
Was this answer helpful?

Related Articles

How to send information from forms - FormMail

This article explains how to send form data to an email on your domain using FormMail Clone, the...

PHP Scripts - Activating PHP support for the service.

This document contains information on how to choose or change the PHP version for each domain...

DomainKeys and SPF - Prevent identity spoofing.

This document contains information to protect your domain against identity spoofing, configuring...

DomainKeys for sending email

This document contains information to verify and activate DKIM, SPF, and DMARC on your domain...

How to create a website using a builder

This document contains information to install SitePad Website Builder from Softaculous in cPanel...