You may want to block file uploads and other requests based on the upload content type.
Access the Server Manager, and click the Filters tab.
Click the Set Request Blocking link.
The Set Request Blocking page is displayed.
Select the resource from the drop-down list or click the Regular Expression button, type a regular expression and click OK.
Select the type of request blocking you want.
Disabled — Disables request blocking
Multipart MIME (File Upload) — Blocks all file uploads
MIME Types Matching Regular Expression — Blocks requests for MIME types that match the regular expression you type. For more information about regular expressions, see “Understanding Regular Expressions” in Chapter 16, Managing Templates and Resources.
Choose whether you want to block requests for all clients or for user-agents that match a regular expression you enter.
Select the methods for which you want to block requests.
The options are:
Any Method With Request Body — Blocks all requests with a request body, regardless of the method
only for:
POST — blocks file upload requests using the POST method
PUT — blocks file upload requests using the PUT method
Methods Matching Regular Expression — blocks all file upload requests using the method you enter
Click OK.
Click Restart Required.
The Apply Changes page is displayed.
Click the Restart Proxy Server button to apply the changes.