how to password protect files/images

J

jaYPee

i have already downloaded a software that can disable right click,
printscreen so that they can't save the images i have in my website.
the problem i have now is on how can i password protect the images
because if they know the location of the picture in my website they
can still access it directly.

example by typing.
http://www.sample.com/images/image1.jpg

they can still view it directly and still they can download the file.

so is there a way to protect this or something they can't view it
directly?

thanks in advance
 
S

SpaceGirl

jaYPee said:
i have already downloaded a software that can disable right click,
printscreen so that they can't save the images i have in my website.
the problem i have now is on how can i password protect the images
because if they know the location of the picture in my website they
can still access it directly.

example by typing.
http://www.sample.com/images/image1.jpg

they can still view it directly and still they can download the file.

so is there a way to protect this or something they can't view it
directly?

thanks in advance

There are lots of script tricks, but nothing 100%. If an image appears on a
page, it can be stolen. There is *no* fix for that. One click and my browser
will disable javascript. How then can a page stop printscreen? Also, if the
browser is not focused, it cannot block keypresses, so again, scripts and
applets that try to do this are a waste of time and money. If you are
worried about people stealing your images, dont put them online.
 
D

Dennis Biletsky

jaYPee said:
i have already downloaded a software that can disable right click,
printscreen so that they can't save the images i have in my website.
the problem i have now is on how can i password protect the images
because if they know the location of the picture in my website they
can still access it directly.

example by typing.
http://www.sample.com/images/image1.jpg

they can still view it directly and still they can download the file.

so is there a way to protect this or something they can't view it
directly?

thanks in advance

You can't protect pictures that you show on your webpages. There are a lot
of ways to copy your picture, not only right click. You can hide picture
location using a simple script, but anyway if user can see your picture he
can copy it.
<html><body><img src=test.php></body></html>
test.php
<?
header("Content-type: image/gif");
readfile("image.jpg");
?>
 
B

brucie

in post: <
jaYPee said:
i have already downloaded a software that can disable right click,

doesn't work
printscreen

also doesn't work
so that they can't save the images

if the visitor can see it it has already been downloaded to the visitors
computer where they can do whatever they like with it the same as any
other file on their computer.
the problem

is that you're wasting your time. once your goodies have left your
server you have absolutely no control over them. you need to get over
the control freak type mentality of fighting with the medium that a lot
of newbies seem to have and you'll enjoy yourself a lot more.
so is there a way to protect this or something they can't view it
directly?

i have heard some people reporting a reasonable amount of success with
digging a hole and burying them in their back yard.
 
D

Daniel Bleisteiner

so is there a way to protect this or something they can't view it
directly?

Not within HTML. But Apache and many other webservers support the
..htaccess file in a folder. When placing such a file with the correct
content inside the folder all things included are protected with the
configured passwords. Check for "htaccess" or "htpasswd" using Google and
Co. Many provider support this feature too.
 
B

Barry Pearson

jaYPee said:
i have already downloaded a software that can disable right click,
printscreen so that they can't save the images i have in my website.
the problem i have now is on how can i password protect the images
because if they know the location of the picture in my website they
can still access it directly.
[snip]

You've been told that you can't achieve stop people copying them reliably, and
you will irritate people while you try it.

But, why are you bothering? How much money will you lose if people copy the
images instead of paying you? How much are web-sized images worth? (I can only
sell much bigger photographs than I would put on the web).
 
W

Whitecrest

so is there a way to protect this or something they can't view it
directly?

Put up low-res pictures or watermark them. Either option makes them
useless to everyone that would want to do something with them.
 
J

jaYPee

don't know how u the surfer of my website get the file when it is
previewed in the browser. the important is on how can i prevent the
surfer from linking it directly from the imange file i have in my
server.

thanks
 
P

PeterMcC

jaYPee wrote in
don't know how u the surfer of my website get the file when it is
previewed in the browser. the important is on how can i prevent the
surfer from linking it directly from the imange file i have in my
server.

This is generally referred to as "hotlinking".

There's stuff at:

http://altlab.com/htaccess_tutorial.html

and many more sites to be found with a search for stop hotlinking
 
J

jaYPee

jaYPee said:
i have already downloaded a software that can disable right click,
printscreen so that they can't save the images i have in my website.
the problem i have now is on how can i password protect the images
because if they know the location of the picture in my website they
can still access it directly.
[snip]

You've been told that you can't achieve stop people copying them reliably, and
you will irritate people while you try it.

But, why are you bothering? How much money will you lose if people copy the
images instead of paying you? How much are web-sized images worth? (I can only
sell much bigger photographs than I would put on the web).

have you already tried http://www.antssoft.com/htmlprotector/? if you
can copy the content of this then let me know and i will not bother
anyone to password protect my site.

thanks
 
M

Matthias Gutfeldt

jaYPee said:
how can i prevent the surfer from linking it
directly from the imange file i have in my
server.

- Check your hosting package's administration panel, perhaps it offers
'hotlink protection' - that would be the easiest way.
- If your package doesn't offer it in the panel but allows .htaccess,
check out one of the many tutorials that explain this, e.g.
<http://www.splodgy.com/modules/news/article.php?storyid=11>
- Other than that, here's one of many tutorials that shows how to do it
with PHP (since you're x-posting to alt.php):
<http://www.htmlcenter.com/tutorials/tutorials.cfm/159/php/>


Matthias
 
W

Whitecrest

don't know how u the surfer of my website get the file when it is
previewed in the browser. the important is on how can i prevent the
surfer from linking it directly from the imange file i have in my
server.

Do you really believe that your pictures are that valuable?
 
B

Barry Pearson

jaYPee said:
[snip]
But, why are you bothering? How much money will you lose if people
copy the images instead of paying you? How much are web-sized images
worth? (I can only sell much bigger photographs than I would put on
the web).

have you already tried http://www.antssoft.com/htmlprotector/? if you
can copy the content of this then let me know and i will not bother
anyone to password protect my site.

My question wasn't about whether or not it could be done. It was about "why
bother?"

Perhaps your images could be sold. But my experience is that people don't
normally want to buy web-sized photographs. They give the illusion of being
large, but are only perhaps a quarter megapixel, and that is not much. (Or are
you trying to stop bandwidth stealing?)
 
J

jaYPee

Thank you for the help and time you spend. i'm new to photography and
finding some way to protect the images of my client from the server
we're hosting. my client wants to sale the picture from his website
and after searching a lot of information from the web i found this
link http://www.antssoft.com/htmlprotector/protected_sample.htm.

i will surely believe if you can send me the source of the html and
the sample picture from that site.

sorry, i just want to know. i'm just a newbie.

you can send the sample here in my email. (e-mail address removed)

thanks in advance.
 
E

Els

jaYPee said:
http://www.antssoft.com/htmlprotector/protected_sample.htm.

i will surely believe if you can send me the source of the html and
the sample picture from that site.

Isn't that just a translation which is easy to revert (with
a script, quicker than by hand)?

<!--hppage status="protected"-->
<html>
<head><meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"><script LANGUAGE="JavaScript"><!--
document.write(unescape("%3C%53%43%52%49%50%54%20%4C%41%4E%47%55%41%47%45%3D%22%4A%61%76%61%53%63%72%69%70%74%22%3E%3C%21%2D%2D%0D%0A%68%70%5F%6F%6B%3D%74%72%75%65%3B%66%75%6E%63%74%69%6F%6E%20%68%70%5F%64%30%30%28%73%29%7B%69%66%28%21%68%70%5F%6F%6B%29%72%65%74%75%72%6E%3B%64%6F%63%75%6D%65%6E%74%2E%77%72%69%74%65%28%73%29%7D%2F%2F%2D%2D%3E%3C%2F%53%43%52%49%50%54%3E"));//--></SCRIPT><script
LANGUAGE="JavaScript"><!--
hp_d00(unescape("%3C%53%43%52%49%50%54%20%4C%41%4E%47%55%41%47%45%3D%22%4A%61%76%61%53%63%72%69%70%74%22%3E%3C%21%2D%2D%0D%0A%66%75%6E%63%74%69%6F%6E%20%68%70%5F%6E%65%28%29%7B%72%65%74%75%72%6E%20%74%72%75%65%7D%6F%6E%65%72%72%6F%72%3D%68%70%5F%6E%65%3B%66%75%6E%63%74%69%6F%6E%20%68%70%5F%64%6E%28%61%29%7B%72%65%74%75%72%6E%20%66%61%6C%73%65%7D%66%75%6E%63%74%69%6F%6E%20%68%70%5F%63%6D%28%29%7B%61%6C%65%72%74%

etc. etc.
 
S

Steve Pugh

jaYPee said:
Thank you for the help and time you spend. i'm new to photography and
finding some way to protect the images of my client from the server
we're hosting. my client wants to sale the picture from his website
and after searching a lot of information from the web i found this
link http://www.antssoft.com/htmlprotector/protected_sample.htm.

i will surely believe if you can send me the source of the html and
the sample picture from that site.

http://steve.pugh.net/gotcha.htm
http://steve.pugh.net/noname.gif

That's with a few edits to make it displayable on my server, to see
the raw code in its original form have a look at
http://www.stevepugh.net/protected_sample.php

This one had a few new twists I hadn't seen before (the
if(window.location.href.substring(0,4)=="file")window.location="about:blank";
was new to me) but was still easy to beat.

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,044
Latest member
RonaldNen

Latest Threads

Top