How to Prevent Hotlinking in cPanel
Posted about 10 months ago 3kWhat is Hotlinking?
Hotlinking occurs when other websites link directly to your images, using your server's bandwidth.
Enabling Hotlink Protection
1. Access Hotlink Protection
Find "Hotlink Protection" in the Security section of cPanel.
2. Configure Allowed URLs
List the websites that are allowed to link to your files (usually your own domains).
# Allow these extensions
jpg, jpeg, png, gif, bmp
Setting Up a Redirect
You can choose to redirect blocked requests to a specific URL or show a broken image icon.
Pro Tip: Enabling this can significantly reduce monthly bandwidth costs for image-heavy sites.