View Full Version : .htaccess problem?


xiao
05-30-2003, 05:16 PM
Hello,

Lately I've had some visitors complain that they couldn't view any images on my site. I've been using .htaccess to prevent direct linking and it seems that if you're accessing the site through a proxy server the images will not show up (I ran the site through an online translator with the script enabled and disabled).

As I've have problems with direct linking, I'd rather not remove the hotlink protection. I was wondering if there was a workaround to this problem or some other way to prevent hotlinking (other than changing the file names every other week!)

Thanks!

MaGiCSuN
05-30-2003, 10:29 PM
Are you sure you don't got errors in your images? like you linked them to your harddrive for example? it could be... because then you are the only one that can see the images. No matter if you view the page online or offline, you can still see them others can't.

.htaccess should work fine, and should view all the images for everyone. So check your file if you haven't got errors in it with linking images. Otherwise i wouldn't know really....

Love,
Mirna

xiao
06-01-2003, 05:17 PM
Nope, not linking to images on my harddrive. I've asked some other people to check it and they can see it just fine. You can see an example of my problem at http://johto.hispeed.com. The images load fine at the moment, but run it through http://babelfish.altavista.com and it's broken images galore.

lefty
06-01-2003, 05:44 PM
If you're viewing your site through another server, then the images won't show up because that's direct linking. There's no way around it (unless you allow those sites to direct link your images) without taking away the code.