Hotlinking is when another website shows your images or files straight from your server. It uses your bandwidth and slows your site, while giving you nothing. Hotlink protection blocks it.
Steps
If your cPanel uses the Jupiter theme
- Log in to cPanel and open Security > Hotlink Protection.
- Click Enable.
- Check the list under URLs to allow access. It should include your own domain names, with and without www, and any subdomains.
- In Block direct access for the following extensions, list the file types you want to protect, such as jpg, jpeg, gif, and png.
- Tick Allow direct requests if you want people to open the files by typing the address directly.
- Optionally, add an address in Redirect the request to the following URL, such as a small warning image.
- Click Submit.
If your cPanel uses the Meridian theme
- Log in to cPanel and click Security in the left sidebar.
- Open the Protection tab and find the Hotlink Protection section.
- Switch the toggle on. The label changes to Hotlink protection enabled and the rest of the settings appear.
- Review the Protected file types list. It usually starts with common image extensions. Add or remove types as needed, or use the Quick add buttons for Images, Documents, or Audio/Video.
- Add every version of your own domain to Allowed referrer URLs, including http:// and https://, and www and non-www. Missing one can block images on your own site. Click Add after each URL.
- Leave Block direct requests (no referrer) off if you want people to open files by typing the address. If you turn it on, choose whether to Return 403 Forbidden or Redirect to URL when a hotlink is detected.
Why it matters
If a popular page or forum links directly to a large picture on your site, every view uses your bandwidth, and your own visitors may find the site slower. Hotlink protection is a simple, free way to stop this. Check your bandwidth graphs under Metrics > Bandwidth if you suspect it is happening to you.
Tips and troubleshooting
- Always make sure all your own domains and subdomains are in the allowed list. Otherwise your own website may lose its images.
- Allow any site that you do want to show your images, such as a partner site.
- If you click Disable, the list of allowed sites is deleted. Make a note of it first.
- If images do not load after you enable this, check that your own domain names are in the list.
- Social media and search engines may need to be allowed so that your images show correctly when shared.
- Contact support if images disappear and you cannot work out why.
Need help? Contact Barrett IT Support at support@barrettit.com or call 888.374.4632.
