cpanel and hotlink protection?
Date: 08/27/05
(Web Development) Keywords: linux
Hello!
I haven't used cpanel in awhile (my host had a custom control panel), but have just changed hosts and am now back to it.
Problem so far is with hotlink protection. I tried enabling the option within cpanel and I've tried inputting several options directly into htaccess (which is how I did it before). But so far no luck. I seem to recall having this problem last time I used cpanel too, but I don't think I knew much about htaccess then, so I'm not sure if it is related or not.
I've tried so far:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?equinessence.com(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?equinessence.net(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://www.equinessence.com [R,NC]
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?equinessence.com(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?equinessence.net(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://www.equinessence.com [R,NC]
Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?equinessence.com(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?equinessence.net(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://www.equinessence.com [R,NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?equinessence.com(/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?equinessence.net(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://www.equinessence.com [R,NC]
The host is using Linux Red Hat 9.0 if that makes a difference. And I am putting .htaccess in the right folder, so that's not the issue.
Any suggestions? Thanks in advance!
Source: http://www.livejournal.com/community/webdev/238640.html