|
Subject:
|
Protect Files from downloading
|
|
Posted By:
|
asif_sharif
|
Post Date:
|
1/9/2006 10:09:43 AM
|
Hi, how i can protect my files from downloading, because my file url is like /mydata/db.mdb
asif
|
|
Reply By:
|
adam_kahtava
|
Reply Date:
|
1/9/2006 6:53:40 PM
|
You can put your .mdb file under the wwwroot folder. By doing so only the application has access to the .mdb file.
Generally I have the following folders in my Inetpub folder: wwwroot, database
As you can guess I store my database in the database folder.. :)
|
|
Reply By:
|
asif_sharif
|
Reply Date:
|
1/11/2006 12:26:43 AM
|
thanks for your suggestion but what configuration i set for smtp server
asif
|
|
Reply By:
|
asif_sharif
|
Reply Date:
|
1/11/2006 12:29:05 AM
|
thanks but when i upload my application then i would also upload database file and then how i protect it from downloading
asif
|
|
Reply By:
|
adam_kahtava
|
Reply Date:
|
1/11/2006 12:47:17 AM
|
move the database directory or database file into the parent directory of your application.
Your Application directory probably looks like this: wwwroot/ApplicationDirecotry/ wwwroot/ApplicationDirecotry/DatabaseDirectory/
Everyone that has access to your ApplicationDirectory also has access to your DatabaseDirectory. To avoid this problem move the database directory or database file into the parent directory of your application. Your application should look something like this:
wwwroot/ApplicationDirectory/ wwwroot/DatabaseDirectory/ or wwwroot/Database.mdb
|
|
Reply By:
|
adam_kahtava
|
Reply Date:
|
1/11/2006 12:50:21 AM
|
SMTP = Simple Mail Transfer Protocol
|
|
Reply By:
|
asif_sharif
|
Reply Date:
|
1/11/2006 12:59:23 AM
|
thanks for your suggestion,it is working on my pc but when i upload my application where i upload my database file, in a root directory of my site or in a different directory but from both locations anyone can download the database. thanks again for giving your time
asif
|