DPChallenge: A Digital Photography Contest You are not logged in. (log in or register
 

DPChallenge Forums >> General Discussion >> question for web site developers
Pages:  
Showing posts 1 - 20 of 20, (reverse)
AuthorThread
06/08/2005 09:40:55 AM · #1
I just learned that a visitor to my site could do a directory listing of my image file directory, and then be able to download files by right-clicking. Is there any way I can prevent that from happening? I've already disabled right-clicking on the image pages themselves.
06/08/2005 09:42:08 AM · #2
Turn off directory browsing.
06/08/2005 09:42:40 AM · #3
And/or put an index.html file in the image directory - that would pretty much stop it. ;)

M
06/08/2005 09:43:12 AM · #4
damn....mavrik beat me to it :P

just change your main linda's page name to index.htm instead of views_home.html

Message edited by author 2005-06-08 09:44:48.
06/08/2005 09:45:29 AM · #5
There's actually no way that you can prevent someone from downloading any image that they can view on a website - even disabling right clicking won't stop knowledgable people.
06/08/2005 09:47:36 AM · #6
The change is as simple as changing the name of my kickoff page? What's the technical explanation for how that works? If I do that, it locks all sub-directories too?

How do I turn off directory browsing?
06/08/2005 09:48:59 AM · #7
I seriously agree with dunamis. Just about everyone knows how to press print screen and paste into any image editor. Additionally, people can make their own html code to go out and grab anything given away on the net without all the javascript mumbojumbo. IMO, the best way to protect your pictures would be to put a big diagonal watermark across the image.
06/08/2005 09:49:47 AM · #8
The technical explanation is that a site:

//www.me.com/images

Is really a directory, not a valid .html file (website).

However, if you have //www.me.com/images/index.html then the viewer is automatically directed to the index website instead of the directory even if they don't add the "index.html" onto it.
06/08/2005 09:50:25 AM · #9
yes, the easiest way is to change the filename. turning off the directory browsing is a management function you may or may not have direct access to.
06/08/2005 09:52:06 AM · #10
changing the file name to index.htm works because, when you enter a directory without specifiying a specific file:

www.yourdomain/images/
rather than
www.yourdomain.com/images/myfrontpage.htm

it will attempt to find one fo the following files:
index.htm
default.htm
(there are others depending on what you have set up, but those are the main ones)

if it can't find one of these files, it will just open the directory, or if you have turned off directory browsing, it will show an "you are not authorised" page.
06/08/2005 09:52:25 AM · #11
Originally posted by ericsuth:

I seriously agree with dunamis. Just about everyone knows how to press print screen and paste into any image editor. Additionally, people can make their own html code to go out and grab anything given away on the net without all the javascript mumbojumbo. IMO, the best way to protect your pictures would be to put a big diagonal watermark across the image.


I do that for the prints I sell to the general public. However, for my artistic prints, I chose not to do that for cosmetic reasons. The files are also compressed and downsized to really small images so that printing a good quality image is possible only as a very small image. It's something I've thought a lot about, and I know the risk.
06/08/2005 09:52:37 AM · #12
Originally posted by mcrael:

The change is as simple as changing the name of my kickoff page? What's the technical explanation for how that works? If I do that, it locks all sub-directories too?

How do I turn off directory browsing?

The answer gets complicated and depends on the type of web server you use. Directory browsing is enabled/disabled in the web server configuration.
The reason putting an index.html file in the folder is most web servers will default to index.html or default.htm for the home page. If you index.html as your home page then your URL could be simply //www.literalexpressions.com/viewsbylinda/
06/08/2005 10:07:45 AM · #13
Thanks very much everyone. Very valuable information, me thinks....
06/08/2005 10:09:19 AM · #14
Originally posted by mcrael:

How do I turn off directory browsing?


Since you're on an Apache server you could put:

Options -Indexes

in your .htaccess file. This way you don't have to create a bunch of extra files.
06/08/2005 10:18:20 AM · #15
Actually, my web server provides the option to manage indexes, so now indexing is prevented. How cool.... And in the process, I also found the option that lets me password-protect a directory, so now I can implement that for customer photo galleries! Thanks everyone...
06/08/2005 10:49:54 AM · #16
They can always simply turn off JavaScript....right click and download your image...

;)

If you REALLY want to protect your image your better off delivering them via a Flash or some other plug-in tool.

I myself wrote a tool to allow the viewing and downloading of images because I believe the photographer was way over-charging for prints. Too many friends were having problems installing the plug-in.
06/08/2005 11:14:25 AM · #17
Originally posted by theSaj:

I myself wrote a tool to allow the viewing and downloading of images because I believe the photographer was way over-charging for prints. Too many friends were having problems installing the plug-in.


So let's get this straight. You didn't like what the photographer charged so instead of using a different photographer you decided to steal from them?

By that logic if you think TV's cost too much money it's ok to raid Circuit City and take whatever you can carry out the door.
06/08/2005 11:15:35 AM · #18
Sorry to say but if the image is showing on the screen, they can get it no matter what you do to the script. Flash won't even help you... All the viewer has to do is simply take a screen shot of the screen by hitting "PrtSc" and paste it into photoshop or where ever and they got your image...

If it's on the web, they can get it. Sorry...
06/08/2005 11:17:19 AM · #19
Even if you disable directory browsing on your server, it's still incredibly easy to get programs which will rip an entire site and store it locally on your PC. I used to do this all the time when I had dial-up, and rip sites overnight so I could view them quickly during the day.
06/01/2009 04:21:22 AM · #20
hi BobsterLobster,

how did u do that? that was cool!!..
Pages:  
Current Server Time: 04/24/2024 03:24:59 PM

Please log in or register to post to the forums.


Home - Challenges - Community - League - Photos - Cameras - Lenses - Learn - Prints! - Help - Terms of Use - Privacy - Top ^
DPChallenge, and website content and design, Copyright © 2001-2024 Challenging Technologies, LLC.
All digital photo copyrights belong to the photographers and may not be used without permission.
Current Server Time: 04/24/2024 03:24:59 PM EDT.