Question
How do I use htaccess to enable hotlink protection?
Answer
You can add the following code in your .htaccess file to enable hotlink protection:
SetEnvIfNoCase Referer "^http://www.example.com/" locally_linked=1 SetEnvIfNoCase Referer "^http://www.example.com$" locally_linked=1 SetEnvIfNoCase Referer "^http://example.com/" locally_linked=1 SetEnvIfNoCase Referer "^http://example.com$" locally_linked=1 SetEnvIfNoCase Referer "^$" locally_linked=1Order Allow,Deny Allow from env=locally_linked
Still need help?
If you need further assistance than this entry provided, please, do open up a support ticket, we are here to help you out