Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In IIS6 or below where on a folder you want to block any files that would normally be handled by a script processor such as asp.dll, you would open the properties dialog for that folder in IIS manager then on the directory tab under application settings you would change the combo-box next to "Execute Permission" and set it to "none".

How is this done on II7?

share|improve this question
add comment

2 Answers

up vote 5 down vote accepted

In IIS 7 this is included in the Handler Mappings section. On your site click the Handler Mappings Icon, then click the Edit Handler Permissions option in the actions menu.

share|improve this answer
    
Nice one, thanks. –  AnthonyWJones Sep 30 '09 at 12:09
add comment

1.Open IIS Manager and navigate to the level you want to manage. For information about opening IIS Manager, see Open IIS Manager (IIS 7). For information about navigating to locations in the UI, see Navigation in IIS Manager (IIS 7).

2.In Features View, on the server, site, or applicationHome page, double-click Handler Mappings.

3.In the Actions pane, click Edit Feature Permissions.

4.In the Edit Feature Permissions dialog box, do the following:

Select Read to enable handlers that require read access or clear Read to disable handlers that require read access to a virtual directory.

Select Scripts to enable handlers that require script rights or clear Scripts to disable handlers that require script rights in a virtual directory.

Select Execute to enable handlers that require execute rights or clear Execute to disable handlers that require execute rights in a virtual directory. The Execute option is enabled only when Scripts is selected.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.