locked
I want to prevent the users from browsing directly to zip files RRS feed

  • Question

  • User-1858220497 posted

    Hi,

    I have a website providing zipped documents for the users, but I want to prevent the users from browsing directly to zip files. So I add the following codes to the web.config file:

    <httpHandlers>

     <add verb="*" path="*.zip" type="System.Web.HttpForbiddenHandler"/>

    </httpHandlers>

     

    It works fine in the Visual studio environment and ASP.NET development server, so the user faces this error: This type of page is not served.

    But in the IIS environment it not works and the users could easily brows to zip files directly. Please help me, what settings should I apply?

    I really appreciate for helps,

    any help?

    Saturday, November 30, 2013 1:56 AM

All replies