dominat Posted December 1, 2003 Posted December 1, 2003 I am trying to prevent direct linking to my images. Do I put the htaccess text file in my public.html of my c-panel or in the main folder of my domain and subdomains? ...... RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)? dominateyourdestiny.net/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://(www\.)? dominateyourdestiny.net.*$ [NC] RewriteRule \.(gif|jpg)$ http://dominateyourdestiny.net/evil.gif [R,L] And is this correct? Thanks Quote
TCH-Don Posted December 1, 2003 Posted December 1, 2003 .htaccess goes in the public_html folder on your site. you can also use cpanel to add hotlink protection and add authorized sites. This will add the necessary code to your existing .htaccess file for you. Quote
dominat Posted December 1, 2003 Author Posted December 1, 2003 uh oh.... Now my Index page has a big X on it.....I used the Hotlinking protection in my c-panel. what now??? Thanks Quote
TCH-Don Posted December 1, 2003 Posted December 1, 2003 (edited) Under hot protection there is a box to add Urls to Allow Access: did you add your own site? add it as http://yoursite.com and http://www.yoursite.com Edited December 1, 2003 by TCH-Don Quote
Caliyo Posted December 4, 2003 Posted December 4, 2003 Don Strange thing after enabling hotlink protection my home page image is not viewable. All other pages are fine. When it is disabled the image comes up fine. Any thoughts? Quote
ADAMmedia Posted December 9, 2003 Posted December 9, 2003 Don Strange thing after enabling hotlink protection my home page image is not viewable. All other pages are fine. When it is disabled the image comes up fine. Any thoughts? I've run into something similar when trying to enable this feature for some of my clients. Their images won't load at all and they don't load for any of the other pages, even though "http://whatevertheClientsiteis.com" is in the list. Do I have to list all the directories? Quote
TCH-Don Posted December 9, 2003 Posted December 9, 2003 I am finding hotlink protection does not always work right. Sometimes I have to disable and later re enable because of the same problem. I keep a text file of the authorized links to paste back in. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.