Using Hotlink Protection in cPanel
Updated November 5, 2026
Hotlink Protection can help stop other websites from displaying files hosted on your site, such as images, and using your bandwidth. You can choose which file types to protect and which sites are allowed to link to them.
Set up Hotlink Protection
- Sign in to cPanel.
- Open Hotlink Protection.
- In the allowed sites field, include your own domain and any other domains that should be able to display your protected files.
- Enter the file extensions you want to protect, separated by commas. For example:
jpg,jpeg,gif,png. - If you want visitors to be able to open a protected file by entering its address directly in a browser, enable the option to allow direct requests.
- If the page offers a redirect field, you can enter the address visitors should be sent to when a site hotlinks to a protected file.
- Save or enable the protection using the control shown on the page.
Change or turn off protection
Return to Hotlink Protection to adjust the allowed sites or protected file types, or to disable the feature. Check that your own domains are allowed if images on your site stop displaying.
If something doesn’t work
If a site or app that should be allowed cannot display your files, review the allowed sites and protected extensions in Hotlink Protection. If you’re unsure which values to use, open a ticket with us.
