SSL & Security What Is Hotlink Protection and How to Enable It
If another website embeds your images directly from your server, their visitors cost you bandwidth every time — and your content appears on their site without permission. Hotlink protection stops this. Here’s what it is and how to turn it on in cPanel.
What hotlinking is
Normally, a website hosts its own images. Hotlinking is when another site skips that and links straight to an image on your server using your URL. The result:
- Your bandwidth is consumed serving images for someone else’s site.
- Your content is displayed on sites you didn’t approve.
- On a busy offender, it can noticeably eat your resources.
How hotlink protection works
Hotlink protection checks where a request for your files comes from. If the request comes from your own site, it’s served. If it comes from another site that isn’t on your allowed list, it’s blocked — so the image simply doesn’t load on their page.
Enable it in cPanel
- In cPanel, open Hotlink Protection (under Security).
- Review the URLs allowed to access your files — your own domain(s) should be listed. Add any CDN or services that legitimately display your images.
- In Block direct access for these extensions, list the file types to protect, e.g.
jpg,jpeg,gif,png,webp(andpdf,zipif you want to protect downloads). - Optionally set a redirect URL to send blocked requests to (like a “no hotlinking” image).
- Click Submit.
Don’t lock yourself out
The one risk is forgetting to allow a legitimate source:
- Keep your own domain (both
wwwand non-www) in the allowed list. - Add any subdomains, CDN or third-party services that display your images.
- After enabling, check your own site loads all images correctly.
When you need it
- Protect popular images that others are embedding.
- Protect downloads (PDFs, zips) from being linked and shared off-site.
- Save bandwidth if hotlinking is driving up your usage — check resource usage.
Not every site needs it — a small site with little traffic rarely gets hotlinked. Turn it on if you notice the problem or run image-heavy content worth protecting.
Part of your security toolkit
Hotlink protection sits alongside cPanel’s other security tools, like blocking an IP address and directory privacy. All are included on every Web Hosting and WordPress Hosting plan, with server-level protection running underneath — and our support team can help you set the allowed list correctly.
Frequently asked questions
What is image hotlinking?
Hotlinking is when another website embeds your images (or files) directly from your server using your URL, so your hosting serves and pays for the bandwidth every time their visitors load the image. Hotlink protection blocks this.
Will hotlink protection break my own site?
No, if set up correctly. You allow your own domain (and any CDN or services you use) in the allowed list, so your site displays its images normally. Only requests from other, unlisted sites are blocked.
Should I block or replace hotlinked images?
cPanel's hotlink protection simply blocks them, so the other site shows a broken image. Some people instead redirect hotlinked requests to a 'please don't hotlink' image. Blocking is simplest and protects your bandwidth either way.