
SAMPLE SITE README FILE
- for -
Protecting Web Site Download Files
Article URL: http://www.NerdyMusings.com/LPMArticle.asp?ID=8

-------------------------------------------------------------
Copyright 2005 by Logical Expressions, Inc. All rights reserved. You may freely distribute the zip containing this file as long as you leave all copyright information intact. Visit www.LogicalExpressions.com for more information about our company.
-------------------------------------------------------------

This ReadMe file contains general instructions for installing and using the sample site that accompanies it. The sample site demonstrates the techniques described in the Protecting Web Site Download Files article from NerdyMusings.com.

This file is part of the HttpTransfer.zip archive. When you extract the files from the archive, you should choose the appropriate "with folder names" option of your zip tool so you get the folder structure along with the files. These instructions assume you are setting up the sample site on a Windows computer running a default installation of IIS 5.0.

1. Unzip the HttpTransfer.zip files to a temporary folder on your hard drive. You should have a sub-folder named HttpTransfer that contains the sample site files.

2. Copy the HttpTransfer folder to your InetPub\wwwroot folder.

3. Create a folder in which to store your download files. It doesn't matter where you put it, as long as you don't put it under Inetpub\wwwroot. These instructions assume you created "C:\HttpTransfer\Downloads." Copy a few plain text files to the folder for testing.

4. Set the permissions on your download folder to give read access to your anonymous internet user account. The account is usually named IUSR_MachineName where "MachineName" is the name of your computer (e.g. IUSR_Dolphin if your computer name is Dolphin).

5. Edit the Config.asp file and change the conDownloadFolder constant to match the location of your download folder. For example:

	Const conDownloadFolder = "C:\HttpTransfer\Downloads"
	
6. Test the sample site by opening a browser navigating to http://localhost/HttpTransfer.

7. Log in with user name "bart" and password "CowaBunga!" (case is significant). You should now see your sample text files.

8. Click on one of the files and save it somewhere. That's it! You just transferred a file from your Web server without exposing the file through a URL.

If you have questions, comments, or suggestions, please submit them through the contact form at the bottom of the Protecting Web Site Files article (browse to http://www.NerdyMusings.com/LPMArticle.asp?ID=8).

Thank you for your interest.

James H. Byrd
Vice President
Logical Expressions, Inc.
