Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to prevent external users from viewing document files
    primarykey
    data
    text
    <p>I've built an online system that allows users to download PDF files using ColdFusion. Users have to log in before they can download the files (PDF &amp; Microsoft Office documents). (This application is only for our company staff.)</p> <p>However, only today I found out that anyone with internet access can view the files. With only certain keywords such as 'Medical Form myCompanyName' in a Google search, they can view the PDF files using the browser.</p> <p>How can I prevent this?</p> <p><strong>UPDATE</strong><BR> this is what my problem is. i've created a folder for all of the PDFs file. each of the files is called using ID from database. if let's say a user wanted to view Medical Form, the link would be: <a href="http://myApplication.myCompanyName/forms.cfm?Department=Account&amp;filesID=001" rel="nofollow">http://myApplication.myCompanyName/forms.cfm?Department=Account&amp;filesID=001</a>. </p> <p>if the user copy this url &amp; log out from system, he/she will not be able to view this file.(login page will be displayed) </p> <p>However, without the url, other internet users sstill can view the pdf files just by search it on the net, and the search engine will gives a link that direct it to the folder itself, without having to login.<BR></p> <p>Example: Medical Form's pdf file is stored in a folder named Document. when an internet user search for Medical Form, the search engine will link it to: <a href="http://myApplication.myCompanyName/Document/Medical%20Form.pdf" rel="nofollow">http://myApplication.myCompanyName/Document/Medical%20Form.pdf</a></p> <p>we have lots of PDF files in this folder and most of it are confidential, and for internal view purpose only. in php, we can disable this by using .htaccess. i'd like to know if there's anything like this for coldfusion? </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload