473,799 Members | 2,985 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Image posing question

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
5 1382
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
On Sep 7, 11:46*am, FutureShock <futuresh...@at t.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
Message-ID:
<af************ *************** *******@m44g200 0hsc.googlegrou ps.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 011000100110110 0010000000110
001101101011011 001000110111101 100111001011
100110001101101 111001011100111 010101101011
http://slipperyhill.co.uk - http://4theweb.co.uk
Sep 7 '08 #4
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/9631b2f59325276 3

Sep 7 '08 #5
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*******@attgl obal.net
=============== ===

Sep 7 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3644
by: Ralph Freshour | last post by:
My .php app displays an image on the web page, I notice that different ..jpg images display "funny" - apparently they all have slightly different image widths and heights yet in the image tag I have to set those properties to something - is there a way in php to get an image width and height so I can set it correctly for each image? <IMG SRC="<?php echo $php_image ?>" WIDTH="268" HEIGHT="176" BORDER="0" ALT="">
0
2506
by: Vlado | last post by:
Hello, I need to copy/paste image from Java application to/from the System clipboard. On windows everything is just fine, but on Mac OS is not. The problem is that when I transfer image to the clipboard it's content type is image/x-java-image and when I try to paste it in some Mac application (for example MS Worf for Mac OS) it doesn't work. I think that this happens, because Word doens't understand the image/x-java-image content type....
10
2936
by: Fred Nelson | last post by:
Hi: I have programmed in VB.NET for about a year and I'm in the process of learing C#. I'm really stuck on this question - and I know it's a "newby" question: In VB.NET I have several routines that upload and process images. I can't get past "square one" with images in C#: This statement:
68
4145
by: Nak | last post by:
Hi there, This might sound like a silly question but, technically could an image object be used for any image format? For example if I were to make plugins for my application, could they be made to return a specific image format as an image object, such as PSD (Only for viewing purposes). Thanks in advance Nick.
35
2676
by: Stan Sainte-Rose | last post by:
Hi, What is the better way to save image into a database ? Just save the path into a field or save the image itself ? I have 20 000 images (~ 10/12 Ko per image ) to save. Stan
8
1151
by: swisscheese | last post by:
After reading 5 tutorials, I must be missing something basic. >From a .php web page how can I output an image? I created and drew the image and did: header("Content-type: image/png"); imagepng($image,"image.png"); ?> .... <BODY <img src="./image.png" height="400" width="400"></img>
17
2169
by: HornyLaBelle | last post by:
I'm hiding the email address on a website with this javascript which works fine: --------------------------------- <p>Send your comments and questions to our <script language=javascript> <!-- var contact = "Newsletter Editor"
4
3467
by: LT.Ang | last post by:
I am developing an application that possibly opens very large images - bmp, jpeg, tiff. I have 2 questions: Language: C#, VS .NET 2003. 1. When the program opens a BMP image, the amount of memory used seems to be larger for BMP files than JPEGs with the same pixel dimensions. For example, 5200 x 5000 pixels image -- increase in Mem Usage is about 80MB for JPEG, but 200MB for BMP (with Task Manager). The Mem Usage is noted before and...
6
4759
by: David Stone | last post by:
I have a simple question about the alt content of area elements within an image map: is it redundant to include phrases such as "link to..." or "jump to..."? My initial thought is 'yes', since the area element implies a link to some other item or page location, but would like to hear what others think. If it helps at all, the page which prompted me to ask the question is this one: ...
0
9686
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9540
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10250
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10026
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9068
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7564
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4139
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.