Home
/
Website Help
/
Other
/
How to setup Hotlink Protection?

How to setup Hotlink Protection?

To enable hotlink protection for the desired file types, add the following lines in the .htaccess file for your website:

RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://domain.com$      [NC]
RewriteRule .*.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

Replace domain.com with your actual domain name.

Share This Article