Where Is Hotlink Protection?
Table of Contents
In Site Tools
The Hotlink Protection tool, which allows you to prevent other sites from directly linking to files from your site, is not available in Site Tools. You can still enable such protection manually for the desired file types. Just add the following lines in the .htaccess file for your website:
RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://domain.com$ [NC] RewriteRule .*.(jpg|jpeg|gif|png|bmp|webp)$ - [F,NC]
Replace domain.com with your actual domain name.
Note that the Hotlink protection will not work with NGINX Direct Delivery enabled. You can disable it from your Site Tools > Speed > Caching.
In cPanel
The Hotlink Protection tool was deprecated a year ago. You were able to perform the action manually, as described above.