ASP Is Fun

Learning ASP
Free Course
Basics
Functions
SQL Commands
Sample Code


Servers / Setup
Host Reviews
Server Setup
Error Tips


Contract ASP
Development

Search For:


Intro to ASP


 


Including .inc or .asp files securely



When you are including files in ASP, many books teach you to use .INC extensions. However, for security reasons, you should always end your filenames in .ASP.

Let's say you are including a datastore file that contains all of your database connection information. If you name that file datastore.inc and someone manages to browse and find it, they can now see your entire database connectivity information! If you instead name that file .asp, your IIS server will pre-process the file and not show any information to the end user.

There are many other reasons to keep your asp include files with an ASP extension. You can actually include other ASP scripts so that your headers, footers, ads, etc. are all dynamic.

ASP Basic Concepts



Bookmark this site so you can reference it any time you have ASP questions in the future!




ASP Main Page | ASP Ebooks | Free ASP Course |
All content copyright © 2012 Minerva WebWorks LLC. All rights reserved.

Exploring Believability


Free Newsletter!

Ebooks
Intro to ASP
ASP SQL DB
Members
Shopping


Introduction to ASP

Thought Provoking
Video Games and Child Soldiers

Romance Tips
Irish Romance
Italian Romance
French Romance

ASP Poll
How do you handle 500 errors?
I don't
Page does nothing
Displays error
Emails error