Computing.Net > Forums > Programming > ASP & Database

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

ASP & Database

Reply to Message Icon

Name: xscript
Date: June 28, 2006 at 01:00:49 Pacific
OS: Windows XP
CPU/Ram: NA
Product: NA
Comment:

Hi,

I was wondering what the best way to securely connect to a database is using ASP? I have a connection to a database from an ASP page. It all works fine, but I find that I have to give lots of rights to the web user to the database so the ASP page can write data to it. This could be abused by somebody who could storm the database and write a load of junk to it.

How can I restrict access to just the ASP page to write to the database?

Many Thanks

Xscript



Sponsored Link
Ads by Google

Response Number 1
Name: Chi Happens
Date: June 28, 2006 at 03:58:33 Pacific
Reply:

I typically move the database into a folder that is not accessible via the web, for instance above the www (or wwwroot) folder, and then give security access to that folder, which is not accessible to anyone outside of the machine.

Hope this helps,
Chi

They mostly come at night...mostly.


0

Response Number 2
Name: xscript
Date: June 29, 2006 at 07:38:46 Pacific
Reply:

Chi,

Yes, this is what I thought about doing, but the database is for an online enquiry form, so I have to give the anonymous web user write rights to the DB don't I?

Thanks

Xscript


0

Response Number 3
Name: bakss
Date: June 30, 2006 at 14:31:57 Pacific
Reply:

you need to limit an access to your page with username and password and to save them in session object


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: ASP & Database

~~~ Database Design Help ~~~ www.computing.net/answers/programming/-database-design-help-/7206.html

How to build an E-Card website? www.computing.net/answers/programming/how-to-build-an-ecard-website/3637.html

creation of web data bases www.computing.net/answers/programming/creation-of-web-data-bases/1647.html