The application.cfm file does nothing to prevent directory browsing or
calling of non .cfm files directly. That's set up on the web server. You
can build a login script and then use CFDIRECTORY to list the image files
then use CFFILE to bring them into a page to view.
Dave
----- Original Message -----
From: "Absolute 1" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 1:26 PM
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.
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
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