Forum Moderators: phranque

Message Too Old, No Replies

Prevent direct access to jpg files using password protected directorie

         

mobsterman

5:27 pm on Sep 25, 2006 (gmt 0)

10+ Year Member



Hi, this is my first post. I've searched these forums for a solution to image theft. Specifically, I had homed in on the use of a .htaccess file.

Unfortunately, while it does prevent someone from stealing an image by typing in [mywebsite.com...] it also means that any calls for xyz.jpg from other built up html webpages are denied as well!

So I was thinking how about if I put xyz.jpg into a password protected directory, then surely who ever types in [mywebsite.com...] will be asked for the password. But on the other hand, how will calls for xyz.jpg from other built up html webpages be treated?

Anyone has eny experience with password protected directories? Thanks

jdMorgan

7:15 pm on Sep 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Access controls applied to any file will apply no matter how it is requested using HTTP.

A search on 'hotlink protection' and similar phrases will turn up many threads here about Referrer-based solutions and more-sophisticated solutions.

Jim

[edited by: jdMorgan at 7:15 pm (utc) on Sep. 26, 2006]