Forms Authentication + Web form exclude

G

Guest

How can I exclude a web form from Forms Autentication, For example lets say I
need to redirect to a web form if the ip address of the client is not in my
list. I cannot redirect to my error display page because of the obvious
reasons. So is there anyway I can exclude certain files? To make them
"public". I know if i create another VDir and redirect there it will work but
is there a solution for web forms sitting in the same app folder?

Thank you!
 
B

billrob458

You can accomplish this by adding a location tag to your web.config and
specify a different set of permissions.

<location path="CustomIPInvalidError.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>

This will allow you to redirect unauthenticated users to your Custom
error page. This section is defined outside of the <system.web> tag in
the config file.

HTH,

bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top