How to configure Hotlink Protection in cPanel

October 11, 2022 / cPanel & WHM

cPanel hotlink prevention configuration is covered in detail in this post.


A security feature in cPanel called hotlink protection is intended to cut down on bandwidth usage. It works by preventing links from other websites to your content, for example, pulling in images hosted on your server for display on their web pages).


To configure hotlink protection in cPanel, follow the steps

  1. Access cPanel.
    Login to cPanel
  2. Search for and choose the “Hotlink Protection” icon under the “Security” heading.
    choose the “Hotlink Protection”
  3. Click “Enable” or “Disable” to turn on or off Hotlink protection.
    Enable Hotlink Protection
  4. Enter the name of your domain and any subdomains that may need access to server resources under the header “URLs to enable access” (images, etc).
    URLs to enable access
  5. Enter the file extensions you want to prevent direct access to under the preceding category. There will by default be a long list of popular file types.
  6. Decide if you want to permit direct access to the file (The file can be accessed directly from the browser, just not from another web page.)
  7. For queries that attempt to access a hotlink-protected resource, you can enter a “Redirect URL”. This page might be a “Hotlinking is not allowed” page.
  8. Finally, click on the “Submit” button.

This way you can configure the Hotlink Protection in cPanel. If you have any difficulty, you can contact our support experts at any time. Also, don’t forget to check out our latest web hosting packages.


Dominos Search