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 displays.
Select the resource from the drop-down list or click the Regular Expression button, enter a regular expression and click OK.
Click the radio button for the type of request blocking you want.
The options include the following:
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 enter. For more information on 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.
Click the radio button for 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 displays.
Click the Restart Proxy Server button to apply the changes.