By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,949 Members | 1,869 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,949 IT Pros & Developers. It's quick & easy.

Image posing question

P: n/a
I know this is not actually a PHP question, but I figured this would
be the place to go to get a good answer. I have a website for the
neighborhood I live in and people's main concern is security. All the
pages I made in PHP and I have a login for users and all sensitive
information requires users to be logged in. I would like to post
images on the page, but I know that if I put them on a page that is
behind the login the images are still floating on the web server and
one can get to them without logging in. Is there a way to have the
images available only to the pages and not directly or, for that
matter, any other way to accomplish something similar. Thank you.
Sep 7 '08 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Computer Guy wrote:
I know this is not actually a PHP question, but I figured this would
be the place to go to get a good answer. I have a website for the
neighborhood I live in and people's main concern is security. All the
pages I made in PHP and I have a login for users and all sensitive
information requires users to be logged in. I would like to post
images on the page, but I know that if I put them on a page that is
behind the login the images are still floating on the web server and
one can get to them without logging in. Is there a way to have the
images available only to the pages and not directly or, for that
matter, any other way to accomplish something similar. Thank you.
Actually the BEST place to get the right answer would be in an area in
regards to the question.
I believe that your question is best placed in the NG related to your
web server.
But for my 2 more cents, images don't just float around the web server.
They will be placed in a directory. You will need to change your web
server configuration to prevent direct access to that directory, whether
it being placed above the root directory(no changes needed), or
modifying that particular directory access.

Good Luck
Sep 7 '08 #2

P: n/a
On Sep 7, 11:46*am, FutureShock <futuresh...@att.netwrote:
Computer Guy wrote:
I know this is not actually a PHP question, but I figured this would
be the place to go to get a good answer. *I have a website for the
neighborhood I live in and people's main concern is security. *All the
pages I made in PHP and I have a login for users and all sensitive
information requires users to be logged in. *I would like to post
images on the page, but I know that if I put them on a page that is
behind the login the images are still floating on the web server and
one can get to them without logging in. *Is there a way to have the
images available only to the pages and not directly or, for that
matter, any other way to accomplish something similar. *Thank you.

Actually the BEST place to get the right answer would be in an area in
regards to the question.
I believe that your question is best placed in the NG related to your
web server.
But for my 2 more cents, images don't just float around the web server.
They will be placed in a directory. You will need to change your web
server configuration to prevent direct access to that directory, whether
it being placed above the root directory(no changes needed), or
modifying that particular directory access.

Good Luck
Thank you, I will do that. Thanks again for the quick response.
Sep 7 '08 #3

P: n/a
Message-ID:
<af**********************************@m44g2000hsc. googlegroups.comfrom
Computer Guy contained the following:
>All the
pages I made in PHP and I have a login for users and all sensitive
information requires users to be logged in. I would like to post
images on the page, but I know that if I put them on a page that is
behind the login the images are still floating on the web server and
one can get to them without logging in. Is there a way to have the
images available only to the pages and not directly or, for that
matter, any other way to accomplish something similar. Thank you.
The way to do this is to place the images above the web root and then
write a script which 'fetches' the image. That script can also check if
the user is logged in so that unauthorised users cannot view the images
(though nothing you do will stop them from copying and republishing the
images once they have them).
--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011
http://slipperyhill.co.uk - http://4theweb.co.uk
Sep 7 '08 #4

P: n/a
Computer Guy wrote:
Is there a way to have the images available
only to the pages and not directly or, for that matter, any other way to
accomplish something similar.
Last Friday there was a similar question, in a post called "Password
protection and prevent download".
http://groups.google.nl/group/comp.l...thread/thread/
ea29eb5cf50ddf0/9631b2f593252763

Sep 7 '08 #5

P: n/a
Computer Guy wrote:
I know this is not actually a PHP question, but I figured this would
be the place to go to get a good answer. I have a website for the
neighborhood I live in and people's main concern is security. All the
pages I made in PHP and I have a login for users and all sensitive
information requires users to be logged in. I would like to post
images on the page, but I know that if I put them on a page that is
behind the login the images are still floating on the web server and
one can get to them without logging in. Is there a way to have the
images available only to the pages and not directly or, for that
matter, any other way to accomplish something similar. Thank you.
You're right. It isn't a PHP question. As in an appropriate newsgroup
and you'll get a good answer. Here you'll get good answers to PHP
questions.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Sep 7 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.