Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP Security 2

Status
Not open for further replies.

link9

Programmer
Nov 28, 2000
3,387
US
Hello all --

Read this yesterday, and realized I had a security hole (which I promptly plugged).

Naming your include files with sensitive information in them with a .inc extension allows anyone to view it in plain text format if they stumble onto the correct url. To alleviate this problem, name these include files with the .asp extension.

So if you used to have this file called conn.inc:
<%
dim strCon
strCon = &quot;DSN=myDSN;UID=userID;PWD=myPassword&quot;
%>

then by all means, go through and rename those puppies to .asp and change all the include statements that point to them.

This is especially important for those of you who use DSN-less connection strings, since any and all information someone needs to gain access to your database directly is right there in your connection string.

Now get movin! ;-)
paul
penny.gif
penny.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top