Form Authentication on HTML Pages

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Form Authentication on HTML Pages

  1. #1
    Join Date
    Jun 2004

    Form Authentication on HTML Pages

    Hi. I have inherited a Web site with a lot of HTML pages which NOW will be served on Web server using IIS6. the question is that is there way I can throw all the files in a directory and force authentication on that directory to have those HTML files password protected.

    My client does not have a very huge budget so I must respect his limits which is why I cannot change all the pages to .Net. But if there is no other way, I will have to change everything to .NET (although it is just a matter of adding some code at the top.
    new to programming but getting ther

  2. #2
    Join Date
    Nov 2003
    Portland, OR
    Sure, just drill down to the directory in question in the Internet Services Manager tool, right-click and select Properties. Then, on the Directory Security tab, click the Edit... button in the Anonymous Access and Authentication Control section. In the resulting dialog, make sure that Integrated Windows authentication is checked, and Anonymous access is not checked. Windows will now prompt for a password before serving any file out of that directory.
    Phil Weber

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Jun 2004
    Sorry, I should have mentioned it earlier. Let me define the entire scenario from the top (it is possible that the solution you have suggested would still work).

    I created a Web site in .NET for a client with an Admin area using Form Authentication on a folder. This was done, of course, through Web.config. After a while, they wanted to update their content themselves. They started using Contribute and Dreamweaver to create HTML pages, and now after making a bunch of pages, they want to add authentication one of the directories.

    In other words, there is already one authentication on one of the directory (and if) the new directory was in .NET, I would have to create a new approot on that directory. Will the solution you have described still work?

    Sorry for the confusion, thanks Phil
    new to programming but getting ther

  4. #4
    Join Date
    Dec 2003
    I haven't tried this, but you may want to create a simple forms based authentication application and integrate it with the HTML pages (without converting them to .aspx) in order to determine whether attempting to access these pages directly results in a redirection to the login page.

    Simple Forms Authentication
    Microsoft MVP (Visual Basic)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center