Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7492095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T16:21:44+00:00 2026-05-29T16:21:44+00:00

I have a windows web server and i am using xml for the web.config

  • 0

I have a windows web server and i am using xml for the web.config i currently have extensions permissions set to false for .exe, .bin, and .dll

but i made a directory called “thing” with a .exe in it and i want to write in xml permissions for that directory that lets me download .exe files from it

 <?xml version="1.0" encoding="utf-8" ?>
 <configuration>
     <system.webServer>
         <security>
             <requestFiltering>
                 <fileExtensions>
                     <add fileExtension=".dll" allowed="false" />
                     <add fileExtension=".exe" allowed="false" />
                     <add fileExtension=".bin" allowed="false" />
                 </fileExtensions>
             </requestFiltering>
         </security>
     </system.webServer>
 </configuration>

help please?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T16:21:46+00:00Added an answer on May 29, 2026 at 4:21 pm

    From the IIS7 documentation, there are 3 tags that you can use within <requestFiltering> to control URL access:

    • <denyUrlSequences> – This element can contain a collection of URL sequence patterns that IIS 7 will deny; for example: you can deny parts of URL sequences that an attacker might try to exploit.
    • <fileExtensions> – This element can contain a collection of file name extensions that IIS 7 will either deny or allow; for example: you can block all requests for Web.config files.`
    • <hiddenSegments> – This element can contain a collection of URLs that cannot be browsed; for example: you can deny requests for the ASP.NET App_Code folder.

    For example:

    <requestFiltering>
        <!-- deny access to any URL which contains /private -->
        <denyUrlSequences>
           <add sequence="/private"/>
        </denyUrlSequences>
        <!-- block all file extensions except js,css,html -->
        <fileExtensions allowUnlisted="false">
           <add fileExtension=".js" allowed="true" />
           <add fileExtension=".css" allowed="true" />
           <add fileExtension=".html" allowed="true" />
        </fileExtensions>
        <!-- hide config and bin dir -->
        <hiddenSegments>
           <add segment="config" />
           <add segment="bin" />
        </hiddenSegments>
    </requestFiltering>
    

    You can hide some URLs or block some file extensions, but, as far as I can think, it is not possible to fine-tune the accessibility of specific file extensions by folder just changing the IIS configuration. If this is what you want, you’ll probably need to write some server-side code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a Windows Server Web Edition 2003 Web Farm. What can we use
I have a windows 2003 server (WEb edition) which has .net 3.5 sp1 installed
I have my asp.net web server setup to use windows authentication. It is authenticating
I have a Windows 2008 Server with IIS7 on it and a web page
I have setup web dav on windows server 2008. It seems to work fine
I have a web application on an IBM WAS server (Windows). In the WAS
I'm using C# and I have windows form and web service... I have a
I have created a C# web service using visual studio to stop the windows
I'm currently using a linux server, we run a couple of web sites of
I have a webserver running on my Windows XP computer. I have set the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.