This document contains information on using cPanel's Hotlink Protection, which prevents other sites from displaying your images and files using your service's bandwidth.
A hotlink occurs when another site displays an image, video, or other file hosted on your service by linking to it directly. The file is displayed on that site, but the monthly bandwidth consumed is yours. Hotlink Protection blocks those links and only allows the addresses you authorize.
Access: log in to cPanel from the client portal → Log in to cPanel, or at https://yourdomain.com/cpanel. Then open Security → Hotlink Protection.
Enable and configure protection
- Click Enable. The list of allowed addresses and protected extensions is displayed. Click Go Back.
- Under URLs to allow access, review that all your site's addresses are present, one per line, with and without
wwwand withhttpandhttps. Also include your subdomains, the address you use to access cPanel, and any other site you want to allow to use your files. - Under Block direct access for the following extensions, enter the extensions to protect separated by commas, for example
jpg,jpeg,gif,png,webp,mp4. - Check Allow direct requests if you want a file to be openable by typing its address in the browser, for example
https://yourdomain.com/img/photo.jpg. - Optional: under Redirect request to the following URL, enter the address that visitors who link your files without permission will see instead of the file.
- Click Submit.
Disable protection
Click Disable.
Important: disabling protection deletes the list of allowed URLs. Copy and save it beforehand if you plan to enable it again.
Common issues
- Images stopped displaying on my own site or on a subdomain: a variant of the address is missing from the allowed URLs list. Consult the article I cannot view the images of my cPanel services subdomain.
- Other sites still display my images: check that the file extension is in the blocked extensions list and reload without cache using Ctrl + F5.
- High bandwidth consumption: in addition to enabling protection, review usage in cPanel. If your site needs more bandwidth, you can upgrade the service: consult the sales department from the client portal or via the online chat.
If you need help, open a ticket from the client portal or inquire via the site's online chat.
