hello, I've seen on some major image hosting comapnies (photobucket, imageshack) and whenever I hotlink something, they will display a image that says: oops do not hotlink or whatever instead of the original image. is this do-able? thanks in advance
Is what do-able? Hotlinking in spite of authorization settings or the authorization settings themselves? No, you shouldn't be able to get around a closed directory, and this is how authorization works. cheers, gary
To display a warning image when other people hotlinking images on your site, you need to put this in your .htaccess RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com$ [NC] RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ http://www.yourdomain.com/image-not-available.gie [R,NC] Code (markup): Make whatever you want to display and name it image-not-available.gie
That is really a good article about hotlinking side effects and for bandwidth stealing. Descriptive article on the subject. Can I share someone's bandwidth unlawfully? . Thanks for sharing the link.
What I ended up doing, was using the same image in my store, but with a different name, then I took the image they were hotlinking to, and tastefully put text on the image that read "Visit www.mydomain.com." Traffic was up slightly for a week before they changed their images. I just checked and one person is still using my image tiled as his background! Love the free advertising!
This is an incredibly great idea. I've been wrestling with this problem at MySpace for months. Sending an email was unproductive. Thanks!
By the way, Greenthorn, I love your avatar. Is that a sketch of you? If not, of whom? Did you sketch it?
Yes, I was thinking to ask Greenthorn about his avatar. Nice line drawing caricature of different look. Caricatures with few lines really stand out well.
Thanks. I get comments on it all the time. It's a caricature that resembles me. I actually made it part of my logo for my sign business, so it's on the sides of my work van.
Nice work van with your caricature drawn. First time Iam seeing this kind of work van. We do not have such nice Work Vans In india. You are professional.
hmm I can't get it to work... I put this: RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com$ [NC] RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ http://www.yourdomain.com/image-not-available.gie [R,NC] in my .htaccess (which I made). is this because i changed .gie to .png any ideas?