Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Is it possible to password-protect the contents of a web folder in CF 8?

New Here ,
Feb 02, 2010 Feb 02, 2010

I am using Dreamweaver CS4 with CF 8.  I can protect web pages by building a database with usernames and passwords, but this does not protect other files (docs, pdfs, etc) from access. Other than an htaccess file, is there any way to password protect the entire contents of a webfolder in ColdFusion? Are there any extensions that do this?  This is all new to me.

Thanks

605
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Feb 02, 2010 Feb 02, 2010

You are not able to do this with CF directly.  It would be a function of the web server.

You could move all documents other than .cfm into a folder outside of the web root, then use tags such as cfcontent to deliver those files programatically (as often happens when you download software off of a website now days).  However I suspect this isn't what you are looking for.  Just in case here is a quick example of how you may do the force download of document from outside root:  http://www.aliaspooryorik.com/blog/index.cfm/e/posts.details/post/force-file-download-27

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 02, 2010 Feb 02, 2010
LATEST

Joshua,

Sounds like a terrific solution. I'll try that.

Thanks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources