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

Securing a folder

Contributor ,
Aug 16, 2007 Aug 16, 2007

Copy link to clipboard

Copied

Is there a way using CF to have a password protected folder?

Here is the problem. An engineering firm has a document control system in CF. So all documents for a job are supposed to go through the GUI. What is happening tho is people will go directly to the document storage folder and make changes which messes up the control of course.

So they have asked for a solution. 1 solution I suggested was having all paperwork stored in a database. Question there is can Excel, autocad, PDF, Word, etc documents be stored in a database?

Their preferred solution, because overall it will be faster to implement, is a password protected folder that only the application can access.

I checked the cfdirectory and cffile commands but there is no password function in them.

Any ideas?
TOPICS
Advanced techniques

Views

269

Translate

Translate

Report

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
LEGEND ,
Aug 16, 2007 Aug 16, 2007

Copy link to clipboard

Copied

how about moving the doc folder out of the app's web root into a
location no other users have rights to? just make sure that the user CF
is running under has access to that location.
then the only way for users to access the docs will be to go through the
app, which will serve the docs to them...

just a quick thought early in the morning...
--

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com

Votes

Translate

Translate

Report

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
Advisor ,
Aug 22, 2007 Aug 22, 2007

Copy link to clipboard

Copied

LATEST
Following up on Azadi's suggestion. Use cfcontent to serve the files from a directory outside your web root.

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_c_11.html#2850760

Votes

Translate

Translate

Report

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
Contributor ,
Aug 17, 2007 Aug 17, 2007

Copy link to clipboard

Copied

Azadi's suggestion is a good one. Or, you may wish to implement Windows (I assume this is a Windows OS on the server) permissions on the folder containing the documents.

David

Votes

Translate

Translate

Report

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
Documentation