Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 9th, 2006, 11:09 AM
Authorized User
 
Join Date: Sep 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default Protect Files from downloading

Hi,
how i can protect my files from downloading,
because my file url is like /mydata/db.mdb


asif
__________________
asif
 
Old January 9th, 2006, 07:53 PM
Wrox Technical Editor
 
Join Date: Dec 2005
Posts: 271
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.. :)
 
Old January 11th, 2006, 01:26 AM
Authorized User
 
Join Date: Sep 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks for your suggestion but what configuration i set for smtp server


asif
 
Old January 11th, 2006, 01:29 AM
Authorized User
 
Join Date: Sep 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks but when i upload my application then i would also upload database file and then how i protect it from downloading

asif
 
Old January 11th, 2006, 01:47 AM
Wrox Technical Editor
 
Join Date: Dec 2005
Posts: 271
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old January 11th, 2006, 01:50 AM
Wrox Technical Editor
 
Join Date: Dec 2005
Posts: 271
Thanks: 0
Thanked 0 Times in 0 Posts
Default

SMTP = Simple Mail Transfer Protocol
 
Old January 11th, 2006, 01:59 AM
Authorized User
 
Join Date: Sep 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Downloading files via a browser gfrank1157 ASP.NET 2.0 Basics 3 June 14th, 2006 04:13 PM
Downloading files from an FTP server craigdberman Pro Visual Basic 2005 0 March 7th, 2006 12:13 PM
Protect crystal report files pavel Pro VB 6 2 September 27th, 2005 02:17 PM
deny downloading image files. jojys Javascript How-To 1 October 19th, 2004 03:17 PM
downloading files serge Classic ASP Professional 4 September 8th, 2003 10:36 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.