Instead of using gif or jpeg files, have you considered using the
<cfcontent> tag and using cfm files to verify the seucrity? You can use
<img src="somefile.cfm"> instead... Works like a charm.
-----Original Message-----
From: Carlisle, Eric [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 10:38 AM
To: CF-Talk
Subject: RE: Protecting, a, images/pics, directory?
I would also like to hear information on this.
As far as I know, you need web server security to keep someone from
accessing an image file.
You can, however, prevent image names from being shown.
<img src="image.cfm?id=1234567890">
where url.id is an encrypted filename. Inside image.cfm, do a cfcontent
pointing at that image. Did that make sense? :P
EC
-----Original Message-----
From: Absolute 1 [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 1:27 PM
To: CF-Talk
Subject: Protecting, a, images/pics, directory?
I am trying to make it so you have to "login" and be authenticated before
you can view a subdirectory of images and pictures, much like I would if I
used application.cfm to check authentication before .cfm files are loaded in
a subdirectory. But apparently application.cfm is not run before .jpg or
gif files are accessed in a directory. SO, does anyone have some
suggestions on how I can check authentication before someone accesses an
image file in a particular subdirectory? The way it is right now, if anyone
knows the name of the image they can simply type in the URL. Thanks in
advance for any suggestions.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists