How To Prevent Unauthorised Views of site files

Discussion in 'ASP.NET / ASP.NET Core' started by IanRow, Feb 12, 2003.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. When I have uploaded my site files I want to be able to prevent unauthorised views of these files and the site directory structure.

    How can I do this such that user gets a 'You are not authorized to view this page' HTTP 403 error[?]

    Ian Rowland
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    Ian,

    If you are using ASP.net, you can control access by using the built in feature of ASP.net authorization. You can do that by changing the web.config file. A good walkthrough can be found here

    http://www.asp101.com/articles/cynthia/authentication/default.asp

    We do not offer password protection as of currently. We should have this feature by end of Q3.

    quote:Originally posted by IanRow

    When I have uploaded my site files I want to be able to prevent unauthorised views of these files and the site directory structure.

    How can I do this such that user gets a 'You are not authorized to view this page' HTTP 403 error[?]

    Ian Rowland
    </blockquote id="quote"></font id="quote">
     
  3. Hi,

    We are on discountasp.net. Is that the same as asp.net?

    Thanks
     
  4. Takeshi Eto

    Takeshi Eto DiscountASP.NET Staff

    rowby

    I think there is some confusion. When bruce was mentioning ASP.NET, he meant programming in ASP.NET, not ASP.NET as a hosting company.

    DiscountASP.NET specializes in hosting ASP and ASP.NET driven websites.

    Look in the Online Resources Forum here to get more information about ASP.NET.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page