Block access to zip files using access rules

Discussion in 'ASP .Net' started by Torben Laursen, May 12, 2008.

  1. I have a website where the user can download zip files after logging in.
    In the site I use access rules to control who can control what.

    However to my big surprise the user cannot access aspx files in a folder
    without logging in but he can access zip files without any problems!
    The config file for the folder is this:
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
    <system.web>
    <authorization>
    <allow roles="members" />
    <deny users="?" />
    <deny users="*" />
    </authorization>
    </system.web>
    </configuration>

    Does anyone know how I block the access of zip files in a folder so only
    people who are logged in can access them?

    Thanks Torben
    Torben Laursen, May 12, 2008
    #1
    1. Advertising

  2. Torben Laursen

    bruce barker Guest

    by default (for performance reasons) non asp.net file are not mapped to
    asp.net for processing. thus asp.net security has no effect. in iis you need
    to map the zip files to be processed by asp.net

    -- bruce (sqlwork.com)


    "Torben Laursen" wrote:

    > I have a website where the user can download zip files after logging in.
    > In the site I use access rules to control who can control what.
    >
    > However to my big surprise the user cannot access aspx files in a folder
    > without logging in but he can access zip files without any problems!
    > The config file for the folder is this:
    > <?xml version="1.0" encoding="utf-8"?>
    > <configuration>
    > <system.web>
    > <authorization>
    > <allow roles="members" />
    > <deny users="?" />
    > <deny users="*" />
    > </authorization>
    > </system.web>
    > </configuration>
    >
    > Does anyone know how I block the access of zip files in a folder so only
    > people who are logged in can access them?
    >
    > Thanks Torben
    >
    bruce barker, May 12, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alex Hunsley
    Replies:
    1
    Views:
    597
    Andrew Thompson
    Sep 16, 2004
  2. Chris  Becker

    Using scons zip builder to create zip

    Chris Becker, Oct 18, 2005, in forum: Python
    Replies:
    0
    Views:
    596
    Chris Becker
    Oct 18, 2005
  3. morrell
    Replies:
    1
    Views:
    949
    roy axenov
    Oct 10, 2006
  4. MoshiachNow
    Replies:
    2
    Views:
    273
    Ilya Zakharevich
    Oct 4, 2006
  5. Bo Yang
    Replies:
    9
    Views:
    301
    -berlin.de
    Nov 20, 2006
Loading...

Share This Page