Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
fshin #1
Password Protect .html
Hello,
I am using application.cfm to password protect all my files in a given
directory on our server. However, there are a series of html pages that are
generated into the directory that i would also like to protect. Is there a way
to do this with the application.cfm? Or is there a way for me to have the html
pages' extension changed to .cfm automatically somehow? Any help would be
appreciated.
Thanks,
Frank
fshin Guest
-
Using ASP to password protect a webpage
I recently tried to setup a password protected part of my website. I went to microsoft.com and there were instructions on how to use ASP to... -
password protect .fla file ?
Hi all Is there a way for me to password protect my .fla and .swf files ? So that ? say someone comes up to my desktop, and is prompted for a... -
protect password without SSL
hi all, i have a problem with my asp.net web application. i'd like to protect passwords users sent to server, without using SSL server. i'm not... -
Password Protect
I am trying to password protect the partitions on my harddrive. I created 3 partions the 4th one being used only for the OS. Is there a way to... -
Password protect IE
"David Houghton" <d.j.houghton@talk21.com> wrote in message news:<eQgCjSLODHA.2052@TK2MSFTNGP11.phx.gbl>...... -
adonis1976 #2
Re: Password Protect .html
have you thought of using <cffile action="rename"> for the html files that are generated?
adonis1976 Guest
-
mpwoodward *TMM* #3
Re: Password Protect .html
On 2005-05-05 12:21:47 -0500, "fshin" <webforumsuser@macromedia.com> said:
Off the top of my head, unless you add a mapping so that .html files> Hello,
>
> I am using application.cfm to password protect all my files in a given
> directory on our server. However, there are a series of html pages
> that are generated into the directory that i would also like to
> protect. Is there a way to do this with the application.cfm? Or is
> there a way for me to have the html pages' extension changed to .cfm
> automatically somehow? Any help would be appreciated.
get processed by the CF server, I don't think there's any way to use CF
to protect your HTML files since CF wouldn't be processing them (and
hence wouldn't know or care about the HTML files). Probably the
simplest thing to do is just change the file extension of your HTML
pages to cfm.
Matt
--
Matt Woodward
[email]mpwoodward@gmail.com[/email]
Team Macromedia - ColdFusion
mpwoodward *TMM* Guest
-
fshin #4
Re: Password Protect .html
Well, these pages are actually just generated by Microsoft Access and are
manually exported by someone into the web server directory. There may be 30
pages put in there at a time. Can I use cffile to automatically rename these
files (just the extension, not the actual filename)?
fshin Guest
-
fshin #5
Re: Password Protect .html
Matt,
How do I do this mapping? Is there a downside to doing this? Also, it would be very tedious to change the extensions manually as there will be approximately 30 new pages per day.
Frank
fshin Guest
-
adonis1976 #6
Re: Password Protect .html
lets assume that ur user is uploading the html files to the folder "temp"
then i would do create this code:
<cfdirectory directory="#expandpath(temp)#" name="qFolder">
<cfset sFolderPath = expandPath(temp)>
<cfloop query="qFolder">
<cffile action="rename" source="#sFolderPath#\#name#"
destination="#sFolderPath#\replaceNoCase("#name#", 'html','cfm',"all")">
</cfloop>
Schedule this file to run of the CF administrator..let me know.
adonis1976 Guest
-
mpwoodward *TMM* #7
Re: Password Protect .html
On 2005-05-05 13:02:31 -0500, "fshin" <webforumsuser@macromedia.com> said:
There's an explanation here--this is something you do in the web server:> Matt,
>
> How do I do this mapping? Is there a downside to doing this? Also, it
> would be very tedious to change the extensions manually as there will
> be approximately 30 new pages per day.
>
> Frank
[url]http://www.experts-exchange.com/Web/WebDevSoftware/ColdFusion/Q_21056883.html[/url]
Basically you just tell IIS to use CF to process files with .html
extensions (or whatever your extension happens to be). The downside is
that this will mean *all* of your HTML files get processed by the CF
server, which means a small performance hit vs. serving HTML directly.
Probably won't be a showstopper but it is defintely something to be
aware of.
Matt
--
Matt Woodward
[email]mpwoodward@gmail.com[/email]
Team Macromedia - ColdFusion
mpwoodward *TMM* Guest



Reply With Quote

