How to enable Hotlink Protection in cPanel

The cPanel hotlink protection will prevent other web sites from linking directly to your files (e.g. images). For example your images will not be displayed on other websites.
Steps to enable Hotlink Protection:

  1. Log into your cPanel account
  2. Go to Hotlink Protection under the Security section of cPanel
  3. Enter into the field Block direct access for the following extensions (comma-separated): the file extensions you want to block. For example to block image files use something like: jpg,jpeg,gif,png,bmp,tiff
  4. If you want to allow direct requests in the browser (access the files like https://example.com/image.png) select the checkbox Allow direct requests option.
  5. Click the Submit button from the bottom of the page.
cPanel Hotlink Protection
cPanel Hotlink Protection

The video tutorial – where we also test the hotlink protection:

Share this post: