Hotlinking is when someone else's site displays your image (or video, PDF) by linking directly to a file on your hosting. A visitor views their site, and your server sends a file and consumes your bandwidth. You get neither visit nor credit. Hotlink protection prohibits this: files work normally on your site, and from other sites […]
When you need it
- The flow is increasing rapidly, but the visit is not. A common cause is someone using your images on their site or forum.
- You have a store or gallery with lots of photos that others copy along with the link.
- You share video or PDF files that you don't want anyone to embed.
Be careful: when the protection is on, the link to the PDF or ZIP that someone posts on the forum will not work. If that bothers you, remove those extensions from the protected list.
First log in to your panel
Log in client panel, for hosting click Edit, so AutoLogin Panel. In detail: Reset Password Panel or AutoLogin Panel.
What panel are you using? Click and go directly to your instruction.
Don't know which one you have? The WHS panel has a menu on the left (Control Panel, Domains, Email...). cPanel on the home page has icons arranged by groups (Email, Files, Databases, Domains) and the inscription cPanel at the bottom of the page.
Hotlink protection in WHS panel
In the left menu, open Security well Hotlink protection.
- Turn on the switch. Enable hotlink protection (it becomes Protected). Other settings will open below.
- Allow social networking and messaging platforms leave it on Allowed. So Facebook, Instagram, Viber, WhatsApp, Google and others still show a picture when someone shares a link to your site.
- Click Save settings.

Additional settings
- Custom allowed domains: domains you allow to embed your files, one per line (for example your CDN or partner site). Your domain is always allowed.
- Protected file types: you select what is protected with ticks. By default these are images, video (mp4, webm), sound (mp3, ogg), PDF and archives (zip, rar, 7z). A new extension is added to the Add your own extension.
- Redirect hotlinkers to (optional): the address of the image to display instead of yours. If you leave it blank, someone else's site gets a 403 error.

After each change, click Save settings.
Hotlink protection in cPanel
In cPanel this option is called Direct access protection and is in the group Security on the home page. Be careful not to confuse it with an option Leak protection, which is something else (it protects the folder with the password from sharing the account).

- In the field Domains that are allowed to link directly are already your domains. Add others only if necessary.
- In the field Block direct access for the following extensions enter extensions separated by commas. By default they are
jpg,jpeg,gif,png,bmp, and you can addwebp,svg,mp4,pdfand others. - Tick Allow direct request. Thus, the file can still be opened when someone enters its address in the browser, and only embedding on other sites is blocked.
- Redirect requests to the following link is optional, same as in WHS panel.
- Click Send, and up Enable if the protection still says that it is off.

If something is not visible after switching on
If your site loads images from another domain or subdomain (CDN, old domain, www and no www), add that domain to the allowed ones. If the image does not appear when you share the link on a network that is not on the list, turn off protection for that file type or add that network as an allowed domain.

