restrict access to the folder

Last post 06-12-2008 3:26 PM by levib. 3 replies.

Sort Posts:

  • restrict access to the folder

    06-12-2008, 7:07 AM
    • Member
      12 point Member
    • null12345
    • Member since 07-21-2007, 4:35 PM
    • Posts 38

    (This is ASP.NET MVC question. Please don't move to other forum.)

     My app runs on iis 6.0 and i've setup wildcard mapping. I want to allow the files under '/files/admin/' folder to be accessed only by members who are in admin role. How can I do that?

  • Re: restrict access to the folder

    06-12-2008, 7:46 AM
    • Member
      155 point Member
    • skaue
    • Member since 03-03-2004, 3:05 AM
    • Norway
    • Posts 104
    "There's no such thing as a silverbullet", The Werewolf anxiously answered the .Net developer.
    (http://en.wikipedia.org/wiki/Silver_bullet)
  • Re: restrict access to the folder

    06-12-2008, 11:36 AM
    • Member
      12 point Member
    • null12345
    • Member since 07-21-2007, 4:35 PM
    • Posts 38

    I want to restrict access to the static files and I don't know how to do it with action filter.

  • Re: restrict access to the folder

    06-12-2008, 3:26 PM
    Answer
    • Contributor
      4,312 point Contributor
    • levib
    • Member since 07-23-2007, 7:50 PM
    • Redmond, WA
    • Posts 764
    • AspNetTeam

    Put a Web.config file in the protected directory and put your access control inside that file.

Page 1 of 1 (4 items)