467,119 Members | 1,187 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,119 developers. It's quick & easy.

Allow anonymous access only

Is it possible to allow only anonymous users access to the contents of a
folder, rather than all users?
Mar 31 '06 #1
  • viewed: 1854
Share:
4 Replies
Hi,

if by means of forms authentication it should be <allow users="?" /> in the
web.config
http://msdn2.microsoft.com/en-US/lib...b0(VS.80).aspx

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

"cashdeskmac" <ca*********@discussions.microsoft.com> wrote in message
news:74**********************************@microsof t.com...
Is it possible to allow only anonymous users access to the contents of a
folder, rather than all users?

Mar 31 '06 #2
Well, if you're not prompting them for a username and password, and
you're not talking about integrated authentication on an
Intranet...isn't that anonymous?

Mar 31 '06 #3
DWS
Teemu that backwards for umeet.
This is the correct web.config to deny anominous users.
<deny users="?">

<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</configuration>

Good Luck
DWS
"Teemu Keiski" wrote:
Hi,

if by means of forms authentication it should be <allow users="?" /> in the
web.config
http://msdn2.microsoft.com/en-US/lib...b0(VS.80).aspx

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

"cashdeskmac" <ca*********@discussions.microsoft.com> wrote in message
news:74**********************************@microsof t.com...
Is it possible to allow only anonymous users access to the contents of a
folder, rather than all users?


Apr 1 '06 #4
Yup, please read the original question. It was speficically asked to allow
only anonymous ;-)

Teemu
"DWS" <DW*@discussions.microsoft.com> wrote in message
news:70**********************************@microsof t.com...
Teemu that backwards for umeet.
This is the correct web.config to deny anominous users.
<deny users="?">

<?xml version="1.0" encoding="utf-8"?>
<configuration
xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</configuration>

Good Luck
DWS
"Teemu Keiski" wrote:
Hi,

if by means of forms authentication it should be <allow users="?" /> in
the
web.config
http://msdn2.microsoft.com/en-US/lib...b0(VS.80).aspx

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

"cashdeskmac" <ca*********@discussions.microsoft.com> wrote in message
news:74**********************************@microsof t.com...
> Is it possible to allow only anonymous users access to the contents of
> a
> folder, rather than all users?


Apr 3 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Mike Hutton | last post: by
1 post views Thread by graphicsxp | last post: by
reply views Thread by furiousmojo@gmail.com | last post: by
reply views Thread by Peter Duniho | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.