How to Set Up Hotlink Protection on Your Website

Author:Alex Bonnetti
Updated:Apr 23, 2025

To set up hotlink protection on your Esadax.com website, follow these organized steps:

  1. Log into cPanel: Access your control panel using your hosting account credentials.

  2. Navigate to Security Settings: Click on the "Security" section in your cPanel dashboard.

  3. Enable Hotlink Protection:

    • Locate and click on the "Hotlink Protection" icon within the Security section.
    • At the top of the page, find the "Enable" checkbox and check it to activate protection.
  4. Allow Direct Requests: Check the "Allow direct requests" box if you want visitors to access protected files by typing their URLs directly into the browser.

  5. Specify Trusted Domains:

    • In the "URLs to allow" text box, input domains you trust, such as your own site or a CDN.
    • This ensures that images from trusted sources are accessible without being blocked.
  6. Block Unwanted File Types: Use the "Block extensions" field to list file types you wish to protect, like images (.jpg, .png) and PDFs (.pdf).

  7. Optional Redirect Setup:

    • In the "Redirect request to this URL" box, enter a URL where users will be redirected if they attempt to access protected files from an untrusted domain.
  8. Save Changes: After configuring your settings, click "Save" to implement the changes.

  9. Testing: Test the protection by accessing your site from another domain. Ensure that images load correctly only from trusted sources and that visitors aren't redirected unexpectedly unless intended.

  10. Consider Potential Issues: Be aware that enabling hotlink protection might affect RSS feeds or emails. Check Esadax's documentation or contact support if you encounter issues.