Hotlink protection is the way to restrict other sites from direct linking files such as images.
Why hotlink protection is good ?
You can stop copyrighted images and save bandwidth usage by hotlink your images.
let’s begin with enabling/disabling it.
- Login to cPanel. In the cPanel home page navigate to security group and then select the Hotlink Protection.
- You should see an option “URLs to allow access”. Now the system fetches the URLs of all the domains on your site including add-on domains, subdomains, aliased domains and parked domains. You can add or remove the sites from this list to access if you wish.
- In the next field “Block direct access for these extensions”, you can specify the file types that you want to block. If you would like to block the pictures add .jpeg, .jpg, .bmp, .gif, .png to the extensions list. Now that you have enabled retriction to access those file types for specified domain name.
- Next field is “Redirect request to this URL”. You can set redirect here where you want to redirect someone upon accessing those file types.
- Upon clicking submit button, a confirmation message will now appear with the sites that are allowed to link to files in your account and the file extensions that it protects.
- Hotlink protection will be enabled. The websites listed will be hot-linked to shown file types.
- If you want to disable again, just click the disable button.