Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. deny tag of web.config not working on production server

deny tag of web.config not working on production server

Scheduled Pinned Locked Moved ASP.NET
securitysysadminquestionannouncement
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    THE SK
    wrote on last edited by
    #1

    Hi All I have a website on which I am using following setting in web.config 1. to use forms authentication

    <authentication mode="Forms">
    <forms name="MyApplication" loginUrl="/_layouts/CommerceServer/CommerceloginPage.aspx" />
    </authentication>

    2.To secure a folder named MyAcc from anonymous access

    <location path="Pages/MyAcc" allowOverride="false">
    <system.web>
    <authorization>
    <deny users="?" />
    </authorization>
    </system.web>
    </location>

    3.The membership provider

    <membership defaultProvider="UpmProvider">
    <providers>
    <add applicationName="MyApplication"
    enablePasswordRetrieval="false"
    enableEmailAddress="true"
    name="UpmProvider"
    type="Microsoft.CommerceServer.Runtime.Profiles.UpmMembershipProvider,Microsoft.CommerceServer.Runtime,
    Version=6.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" enablePasswordReset="true" requiresQuestionAndAnswer="false"
    passwordFormat="Hashed"
    PasswordStrengthRegularExpression="^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,50}$" />

      </providers>
    </membership>
    

    Now the challenge is on my development server the deny tag works fine i.e when an anonymous user try to access pages which are there in MyAcc folder,the user gets redirected to login page. On the other hand on production site,the anonymous user is able to access the pages of MyAcc folder. Please suggest what could be wrong.Is there any other way to secure thge pages from anonymnous access. Thanks Regards Sandeep Kalra

    modified on Monday, January 18, 2010 12:29 AM

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups