Excluding certain files from forms authentication

P

Paul Cook

Hi

I have a website which uses forms based authentication. However, I
need to exclude a file from authentication so that all users can view
it. How?

Thanks, Paul.
 
H

Harley

first, remember that forms authentication will not protect a file from being
viwed by users. if they get the full URL to the file (and the file is not an
aspx or html one...) they can view it by entering the URL on the address bar
of the browser. if you want to avoid this, you should use windows
authentication.
to protect a specific location, i used these configuration for the
web.config. use one <location> for each URL you want to protect.

<system.web>
 

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,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top