how can I restrict access to all files in a folder without web.config

Posted by netNewbi3 on Stack Overflow See other posts from Stack Overflow or by netNewbi3
Published on 2010-06-14T15:42:58Z Indexed on 2010/06/14 15:52 UTC
Read the original article Hit count: 162

Filed under:
|

Hi

I need to restric access to my admin folder to certain people. Those with no authentication ticket should be redirectered to a "not allowed page". How do I identify all pages in my admin folder. I have so far but is it OK?

If url.Contains("/admin") Then

'If authentication ticket incorrect then

        `Response.Redirect("~/notallowed_admin.aspx")`

End If

And not, I cannot use my web.config for this particular issue.

Many thanks

© Stack Overflow or respective owner

Related posts about .NET

Related posts about ASP.NET