Click here to Skip to main content
15,886,019 members
Articles / Web Development / IIS

Protecting pages with include files

Rate me:
Please Sign up or sign in to vote.
3.86/5 (4 votes)
14 Sep 2000CPOL 137.5K   1.2K   35  
An article on how to easily password protect a site using include files
<HTML>
<HEAD>
<TITLE>Password protection with includes</TITLE>
</HEAD>
<BODY>

<h1>Test Page</h1>

<P>Those links require an authentication. To login use the following the User as 
"CodeProject" and the password as "Password". Either are case sensitive.</P>
<P>Obviously the login verification should be done through a database or a COM 
component. The purpose of this article is to show how easy it would be to add 
security just using includes.</P>
<P>&nbsp;</P>
<P><a href="test1.asp">Test page1</a></P>
<P><a href="test2.asp">Test page2</a></P>

</BODY>
</HTML>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect VisionOne AG
Switzerland Switzerland
XicoLoko is a brazilian developer based in Switzerland.

Comments and Discussions