Ask a questionAsk a question
 

AnswerSecuring Web Content

  • Tuesday, November 03, 2009 8:25 PMsyncupthebird Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I am having issues securing web content on a website.  I added a web config file (see below) in my website at the content directory level , which pops up a login box when files are access within the website.  This is great, but I can also access the files in this directory directly  www.xxxx.com/contentdir/filename, which is not what I want.  I want the login box to appear again if this happens.  Am I missing a setting, can someone direct me to same code to protect direct links to website content.



    <

     

    configuration>

     

    <

     

    appSettings/>

    <

     

    connectionStrings/>

    <

     

    system.web>

    <

     

    authorization>

    <

     

    deny users="?"/>

    </

     

    authorization>

    </

     

    system.web>

    </

     

    configuration>

    • Moved byWang, JieMSFTThursday, November 05, 2009 2:38 AMASP.NET security question, off-topic in WPF (From:Windows Presentation Foundation (WPF))
    •  

Answers

All Replies