473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

web.Config Deny access not working???

Hi can someone please tell me why this web.config file doesn't deny access to
all for the folder it is in???

I have the web.config file in a folder called contents but for some reason I
can still access this folder. I am using Forms authentification and I just
can't get it to work!

PLEASE help...

Thanks
....web.config...

<?xml version="1.0" encoding="utf-8" ?>
<configuration>

<system.web>

<compilation defaultLanguage="vb" debug="true" />

<customErrors mode="RemoteOnly" />

<authorization>

<allow roles="Granted" /> <!-- ONLY USERS ALLOWED THAT BELONG TO THESE
GROUPS -->
<deny users="*" /> <!-- Deny all users -->

</authorization>

<trace enabled="false" requestLimit="10" pageOutput="false"
traceMode="SortByTime" localOnly="true" />
</system.web>

</configuration>

Jun 13 '06 #1
2 5210
Forget the problem...

Stupid mistake... ;-)
"Tim::.." wrote:
Hi can someone please tell me why this web.config file doesn't deny access to
all for the folder it is in???

I have the web.config file in a folder called contents but for some reason I
can still access this folder. I am using Forms authentification and I just
can't get it to work!

PLEASE help...

Thanks
...web.config...

<?xml version="1.0" encoding="utf-8" ?>
<configuration>

<system.web>

<compilation defaultLanguage="vb" debug="true" />

<customErrors mode="RemoteOnly" />

<authorization>

<allow roles="Granted" /> <!-- ONLY USERS ALLOWED THAT BELONG TO THESE
GROUPS -->
<deny users="*" /> <!-- Deny all users -->

</authorization>

<trace enabled="false" requestLimit="10" pageOutput="false"
traceMode="SortByTime" localOnly="true" />
</system.web>

</configuration>

Jun 13 '06 #2
Care to describe it, Tim ?

( Just so others don't make the same mistake... )


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Tim::.." <myatix_at_hotmail.com> wrote in message
news:7C**********************************@microsof t.com...
Forget the problem...

Stupid mistake... ;-)
"Tim::.." wrote:
Hi can someone please tell me why this web.config file doesn't deny access to
all for the folder it is in???

I have the web.config file in a folder called contents but for some reason I
can still access this folder. I am using Forms authentification and I just
can't get it to work!

PLEASE help...

Thanks
...web.config...

<?xml version="1.0" encoding="utf-8" ?>
<configuration>

<system.web>

<compilation defaultLanguage="vb" debug="true" />

<customErrors mode="RemoteOnly" />

<authorization>

<allow roles="Granted" /> <!-- ONLY USERS ALLOWED THAT BELONG TO THESE
GROUPS -->
<deny users="*" /> <!-- Deny all users -->

</authorization>

<trace enabled="false" requestLimit="10" pageOutput="false"
traceMode="SortByTime" localOnly="true" />
</system.web>

</configuration>

Jun 13 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Maziar Aflatoun | last post by:
Hi, I'm trying to protect one of my subfolders from Web.config file in my root folder. Here is my directory structure / // My shopping cart /admin // Shopping cart...
4
by: Dirk Meusel | last post by:
Background: In the root of my webapp the web.config looks like: <authentication mode="Forms"> <forms loginUrl="login.aspx"> </forms> </authentication> <authorization> <allow users="*" />...
1
by: Chris Leffer | last post by:
Hi. I would like to confirm a behaviour in the authorization element from the web.config file. Suppose the following (using Forms authentication): <authorization> <deny users="?" /> <deny...
0
by: Adam Getchell | last post by:
I'm attempting to write a custom Authentication module using http://www.15seconds.com/Issue/020417.htm I looked at http://support.microsoft.com/default.aspx?scid=kb;EN-US;307996, but it doesn't...
6
by: naija naija | last post by:
Hello eveyone, I have a web config like this below:- <location path="finance.aspx"> <system.web> <authorization> <allow users="?"/> <deny users="?" roles="Security_Group"/> </authorization>...
2
by: cmrchs | last post by:
Hi, I'm having problems with the interpretation of roles in the <authentication> entries in web.config Scenario : I'm logging on as 'Administrator' and try to access a site for which the...
9
by: Matt | last post by:
Hello, I'm working on a portal based on IBuySpy, where the main page is desktopdefault.aspx and all content is stored in www.domain.com/content/html/nnn or www.domain.com/content/images/nnn and...
5
by: Andrew | last post by:
Hi, I have a default.aspx which allows the user to choose between module Admin and module B. When the user clicks either one, he will be redirected to a FormsAuthentication login page. The...
5
by: profdotnet | last post by:
Below is the code of web.config file: <configuration> <system.web> <authentication mode="Forms" /> <authorization> <allow users="Admin"/> <deny users="Jack,Mary" /> <deny users="?">...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.