Home › Blog › Enabling Hotlink Protection from cPanel
Enabling Hotlink Protection from cPanel
17 July 2025 · Dorel Tănase · cPanel
Enabling Hotlink Protection from cPanel. Hotlinking occurs when other websites directly use links to media files (images, videos, documents) hosted on your server, without downloading or hosting them locally. This behavior consumes your server resources (bandwidth) and can lead to high costs or decreased website performance.
Enabling Hotlink Protection
What does the Hotlink Protection function in cPanel do?
The Hotlink Protection function in cPanel prevents other websites from displaying your media files through direct links. Thus, only authorized domains (normally, your main domain and related subdomains) can load and display those files.Accessing Hotlink Protection in cPanel
- Log in to cPanel
- Navigate to the Security section
- Click on Hotlink Protection
Configuring Hotlink Protection
In the configuration interface you will see several options:- URLs to allow access: here are listed the domains that can access the files (usually the main domain and subdomains)
- Block direct access for these extensions: you can specify the protected file extensions (e.g.:
.jpg,.png,.mp4) - Redirect the request to this URL: optionally, you can send users to a custom page when they try to access files illegally
What types of files can be protected?
It is recommended to protect the following frequently used media file types:.jpg,.jpeg,.png,.gif: images.mp4,.avi,.webm: video files.pdf,.docx: documents
Testing the protection function
To verify if the protection works:- Open an incognito window and try to load an image directly from the browser, using the file's URL address
- Try to insert a protected file into an external page
- Check if the file doesn't load outside the authorized domain
Disabling Hotlink Protection
If you want to allow access to other domains or completely disable this function:- Return to the Hotlink Protection section in cPanel
- Press Disable
How this article was made
- Author
- Dorel Tănase
- Published
- 17 July 2025
- Last updated
- 18 September 2026
- Sources
We work by our publishing principles, corrections policy, ethics policy.

