Link to home
Start Free TrialLog in
Avatar of svsvsv4
svsvsv4

asked on

checking image for hotlinking

i'm triyng to write something that will check if image is hotlinkable...
i've found some JavaScript solutions, but i want to write it in php...
is it possible?
and how?
Avatar of petoskey-001
petoskey-001

Here is an excellent article on the topic.  PHP and Mod_Rewrite.  What I really like about this solution is that it not only stops people from viewing the image, it also redirects them to your website proper if they try viewing the image directly in their address bar.

http://www.alistapart.com/articles/hotlinking/
Avatar of svsvsv4

ASKER

no, i meant that i want to check if remote image is hotlinkable...
So... you have a list of image url's and you want to find out which ones you can link to remotely?
Why not just try to load the image in your browser?  How many images to you have to link to?
Avatar of svsvsv4

ASKER

i'm trying to make a script that will check big list of images...
I see, that's what I thought.  Well I'm going to sign off on this one then.  Hotlinking uses other people's bandwidth without their permission.  Even if you have some valid reason the solution could be used to steal bandwidth from lots of people.  I don't agree with the practice and won't be part of a solution that's posted so publicly.  Sorry.
ASKER CERTIFIED SOLUTION
Avatar of Diablo84
Diablo84

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial