Hotlink Protection
Stop other sites from embedding your images and media by enabling hotlink protection in hPanel or with .htaccess rules on your Hostinger-hosted website.
Block external sites from embedding your images and media — save bandwidth, stop leeches.
Enable in hPanel
Open your website dashboard.
Go to Hotlink Protection.
Toggle Enable Hotlink Protection on.
(Optional) Add allowed domains.
Click Save.
External requests for protected file types return 403 Forbidden.
Disable
Hotlink Protection → toggle off.
Allow specific domains
For trusted externals (a CDN, partner site, or your own domains):
In Hotlink Protection, find Allowed Domains.
Add domains, one per line.
Save.
Via .htaccess
This blocks image and media requests from domains other than yourdomain.com.
Allow more domains with extra RewriteCond lines:
What it protects
Only the file types you specify — typically images, video, audio, and PDFs. HTML pages and other web content aren't affected.
Last updated: July 21, 2026
Last updated
Was this helpful?