Oracle iPlanet Web Proxy Server 4.0.14 Administration Guide

Blocking Requests

You may want to block file uploads and other requests based on the upload content type.

ProcedureTo block requests based on MIME type

  1. Access the Server Manager, and click the Filters tab.

  2. Click the Set Request Blocking link.

    The Set Request Blocking page is displayed.

  3. Select the resource from the drop-down list or click the Regular Expression button, type a regular expression and click OK.

  4. 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.

  5. Choose whether you want to block requests for all clients or for user-agents that match a regular expression you enter.

  6. 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

  7. Click OK.

  8. Click Restart Required.

    The Apply Changes page is displayed.

  9. Click the Restart Proxy Server button to apply the changes.