Security for HTML pages

Last post 05-18-2009 5:09 PM by fperezhn. 2 replies.

Sort Posts:

  • Security for HTML pages

    05-18-2009, 4:03 PM
    • Member
      15 point Member
    • fperezhn
    • Member since 05-29-2008, 6:19 PM
    • Tegucigalpa
    • Posts 65

    I am creating a web site for my ClickOnce applications, so that the user knows where to find the apps, instead of typing the url of any application. I am trying to validate security for knowing this URL in the web.config of each applications folder with the following code:

     <location path="publish.htm">

    <system.web>

    <authorization>

    <allow roles="admin" />

    <deny users="*"/>

    <deny users="?"/>

    </authorization> 

    </system.web>

    </location>

     

    Even with this validation, if I type the URL for the publish.htm page that VS 2005 creates when publishing the applications in ClickOnce, I can access it without a problem.

     

    What do I need to do to set security to this publish.htm page.

  • Re: Security for HTML pages

    05-18-2009, 4:05 PM
    Answer
    • All-Star
      77,629 point All-Star
    • jeff@zina.com
    • Member since 09-26-2003, 10:43 AM
    • Naples, FL, USA
    • Posts 10,560
    • Moderator
      TrustedFriends-MVPs

    You can't use an ASP.NET authentication mechanism on something that doesn't use ASP.NET.  :)

    Windows authentication or upgrade to Server 2008/IIS7 using the integrated pipeline.

    Jeff

    Blatant Self Promotion: ASP.NET 3.5 CMS Development
  • Re: Security for HTML pages

    05-18-2009, 5:09 PM
    • Member
      15 point Member
    • fperezhn
    • Member since 05-29-2008, 6:19 PM
    • Tegucigalpa
    • Posts 65

     How shall I validate security for the publish.htm pages, there is no other way I know how to publish my ClickOnce apps without this page it creates automatically.

     

    Is there another way to publish this apps or to secure the publish.htm page?

Page 1 of 1 (3 items)