Kiran,

Yoav is right.  The best way is to hide your files inside WEB-INF.  You are
contradicting yourself by saying you don't want people to access the images
thru URL, but then you want to access those images yourself thru URL.  You
are not making sense and it is very bad design architecture.

I am guessing your intention is to maintain the images, is that right?  If
true, you can always set yourself up as the admin to the server, then access
it thru VPN, FTP, or some sort of remote access.

Futhermore, you can always set up an administration module to your
application for maintenance purpose, which is the preferred way.

Hope this helps.


----- Original Message -----
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, December 11, 2003 12:29 PM
Subject: RE: Image Viewing



Howdy,
You asked how to block the user from seeing the images by putting the
address in the browser.  I told you one possible way, e.g. by putting
them under WEB-INF.  You can still access them from your servlets and
JSPs from this location, but users can't.  What part is unclear?

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Kiran Patel [mailto:[EMAIL PROTECTED]
>Sent: Thursday, December 11, 2003 1:28 PM
>To: [EMAIL PROTECTED]
>Subject: Image Viewing
>
>Thank you for the replay and your help.  If I move the images under
WEB-INF
>folder, I can't access the images from the application through the
>internet.  The images can only be viewed if you login and start the
>application not by typing the url.  For security purpose.  Please help
me
>if anybody know how to do that.  Thank you.
>
>Kiran Patel
>
>Howdy,
>Put the images directory under the WEB-INF directory and change your
>servlet accordingly.
>
>Yoav Shapira
>Millennium ChemInformatics
>
>
>>-----Original Message-----
>>From: Kiran Patel [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, December 11, 2003 9:53 AM
>>To: [EMAIL PROTECTED]
>>Subject: Image Viewing
>>
>>I am using jsp and tomcat 4.1 for my web application.  My application=
>
>is
>>viewing image which is in the webapps/image folder.  This image can
>also be
>>viewed from the internet by just typing the url.  I want to block thi=
>s
>>since these are the confidential images.  Does anybody know how to do=
>
>that.
>>Thanks in advance.
>>
>>Kiran Patel



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to