Hotlink protection not working right

beaureg

Registered
Jul 7, 2006
4
0
151
After I enable hotlink protection on my site, I cannot see the images on my site from my computer, but I can from other computer, if I disable hotlink protection everything is ok and I can see everything from my computer

I have looked at all my security settings and I just cannot see what is blocking the images, Images are blocked both when browsing with Firefox or Explorer and I have set their security settings to minimum,

Removing autoprotect from Norton doesn't solve the problem

Win XP security tells me that the antivirus is Norton and the firewall is Norton.
I can access 99% of the sites I want to view but not mine when I enable hotlink protection on it.

Any suggestions ?

Thanks all in advance
 

mathew_p_a

Member
Apr 8, 2005
22
0
151
cache

Hotlink protection has the option for specifying which of the domains will be able to "hotlink" to that domain. The issue with the two machines on your system seems to be a wierd one. Did you try using another browser. May be clearing the browser cache can also help. :cool:
 

beaureg

Registered
Jul 7, 2006
4
0
151
Hotlink protection

The main issue is that when I enable hotlink protection, then I can not see the pics from my site on my computer.
I tried with Firefox, I emptied the cache and removed the cookies and still I cannot view the images from my computer but I can from another computer, this is a weird problem that has me baffled for a long time
 

abubin

Well-Known Member
Dec 7, 2004
401
3
168
try enabling "Allow direct requests (ie. entering the url to an image in your browser)".

Maybe that will help.
 

beaureg

Registered
Jul 7, 2006
4
0
151
That worked ... tks

I enabled "Allow direct requests" and it works fine, I can now see the images of my website from my own computer.
But ... there's this guy that is leeching my pictures and even after enabling hotlink protection my pics still show on his site (that's not so much a problem since a while back I replaced the leeched images with ads for my site and he hasn't noticed yet) but I wonder what's wrong with the hotlink protection not blocking his leeching, shouldn't it ??? I also tried blocking his IP and that also doesn't work, there's something I'm not doingright but what ???
 

Kerstin

Well-Known Member
Apr 9, 2005
136
0
166
Berlin
Hotlink protection, is that is a function of cPanel ? :( You will exclude sites from browsing similar to the option of norton antivirus.
Which browser you have ? This will shurely do a switch in the browser setup.
 

muscleboy

Registered
Jul 10, 2006
4
0
151
california
Hotlink protection is .htaccess

when you try to get hotlink protection cpanel creates entries in your .htaccess file in the /public_html folder.. You might try to edit that file and delete all of the lines about 5 or six lines all having your sites name in them and followed by a final line with the file extensions you don't want people to leach..That cpanel created then put this

when you try to get hotlink protection cpanel creates entries in your .htaccess file in the /public_html folder.. You might try to edit that file and delete all of the lines about 5 or six lines all having your sites name in them and followed by a final line with the file extensions you don't want people to leach... delete them all and just add this to enable hotlink protection on your site, open up your .htaccess file and add the following to the next available line:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
RewriteRule \.(gif|jpg|jpe?g|gif|bmp|png|zip)$ - [F]

I think that's right save the file
 
Last edited:

beaureg

Registered
Jul 7, 2006
4
0
151
This is my .htaccess file

This is my .htaccess file

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
#The next line modified by DenyIP
order allow,deny
deny from 194.109.125.222
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.mydomain.com
AuthUserFile /home/zzz/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/zzz/public_html/_vti_pvt/service.grp

errordocument 404 http://www.mydomain.com/index.php

<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 194.109.125.220

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://mydomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://mydomain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://mydomain2.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://mydomain2.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mydomain3.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mydomain3.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mydomain3.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mydomain3.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://mydomain4.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://mydomain4.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mydomain4.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mydomain4.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

Thanks all for taking the time to help
 

Kerstin

Well-Known Member
Apr 9, 2005
136
0
166
Berlin
I belive that is quite easy to edit such files to exclude some sites ;) from browsing.
If you have a linux system, is this possible adding a entry in the httpd.conf ? :rolleyes: