PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Installs and Upgrade - vBulletin 3.0.X (http://www.photopost.com/forum/installs-upgrade-vbulletin-3-0-x/)
-   -   users can access images directly but shouldn't be able to (http://www.photopost.com/forum/installs-upgrade-vbulletin-3-0-x/118990-users-can-access-images-directly-but-shouldnt-able.html)

Happy Camper August 17th, 2005 12:24 PM

users can access images directly but shouldn't be able to
 
I just noticed today that if i change "gallery/files/1/picture_thumb.jpg" to "gallery/files/1/picture.jpg" I can access the full size image. I have my permissions set up properly and the .htaccess setting set to ON. How can i prevent a user from accessing the image this way without moving all my files into the database?

thanks
eric

Happy Camper August 20th, 2005 02:34 AM

Re: users can access images directly but shouldn't be able to
 
anyone?

Brian August 20th, 2005 12:49 PM

Re: users can access images directly but shouldn't be able to
 
There's really not a way to fully protect your images without having them in the document root, which should be an option in the next version of the gallery.

Happy Camper August 20th, 2005 06:10 PM

Re: users can access images directly but shouldn't be able to
 
thanks brian

Brian August 21st, 2005 02:15 PM

Re: users can access images directly but shouldn't be able to
 
Small correction, I meant to say "below the document root", not "in the document root". :)

Happy Camper August 28th, 2005 07:59 AM

Re: users can access images directly but shouldn't be able to
 
one question about the images being stored below the document root: when a user views the full-szed image (one of which that is being stored outside the public_html) will they ONLY see the image or will they see the page header, info about the image, the page footer, etc?

im just curious because i have been playing around with storing/displaying images from below the root and it seems after you serve the image you can't send any html to format the page whatsoever.

eric

Brian August 28th, 2005 12:57 PM

Re: users can access images directly but shouldn't be able to
 
If they're moved below the document root you can still display them with an <img> tag that points to displayimage.php.

Happy Camper August 28th, 2005 05:39 PM

Re: users can access images directly but shouldn't be able to
 
right, but will you also be able print other things, such as the image name, filesize, replies, etc after you have declared the various header(Content-...) that you will need to server the image?

i hope that makes sense...

Brian August 29th, 2005 07:26 AM

Re: users can access images directly but shouldn't be able to
 
Yes. It doesn't matter whether the <img> tag points to a .php file or an image, the rest of the page is still exactly the same.

Happy Camper August 29th, 2005 07:34 AM

Re: users can access images directly but shouldn't be able to
 
cool! i heard that was impossible so i'll need to figure that out. if you could point me to any resources/tutorials that you know of on how to do that I'd really appreciate it. If you're not too busy, of course. :)

thanks
eric

Brian August 29th, 2005 07:43 AM

Re: users can access images directly but shouldn't be able to
 
Look at your displayimage.php file with the gallery. ;)


All times are GMT -5. The time now is 11:38 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97