Select the Allow check box for Oracle Web Cache to allow requests matching Click the Monitor Only check box to see the match activity of the rule without Configuring Rules for the URL Request Filter

Configuring Request Filtering 4-11

e. Click the Case Insensitive Match check box to match requests regardless of

the case. If you do not select this check box, the rule bases the match on the case.

f. Click the Allow check box for Oracle Web Cache to allow requests matching

the URL fields; deselect the check box for Oracle Web Cache to deny requests matching the IP address and URL fields.

g. Click the Monitor Only check box to see the match activity of the rule without

enforcing the rule. When results are expected, then disable Monitor Only to enforce the rule. See Section 4.4 for further information about the Monitor Only option.

h. Click Apply to save the rule settings.

8. Perform Step 7 for any additional rules. You can also add learned rules, as described in Section 4.8.1 .

9. Modify the Catch All rule, keeping in mind it is applied to all requests that do not

match a defined rule. Oracle recommends creating allow rules, followed by a Catch All deny rule. 10. Use the Move Up and Move Down icons to change the order in which the rules are matched against requests. The order of the rules is important. Oracle Web Cache matches higher priority rules first.

11. Click the Request Filters Summary breadcrumb at the top of the page, or from the

Web Cache menu, select Administration and then Request Filters to navigate back to the Request Filters Summary page.

12. In the URL row, click Enable to enable the filter.

If you do not click Enable, Oracle Web Cache ignores any configured filter rules for this filter.

13. Click Apply to save the configuration for the request filter.

4.8.1 Activating Learned Rules for the URL Request Filter

See Section 4.3 for further information about how learned rules are collected from the Catch All rule. You can add learned rules to the URL request filter. To enable learned rules for the URL request filter: 1. Navigate to the URL Request Filter page. See Section 2.7.2 .

2. In the Learned Rules section, if you see that some learned rules have been

suggested, monitor the statistics for these rules by watching this page for awhile. When you decide that one or more learned rules make sense, proceed. If no learned rules display under Catch All Rule, then there are no learned rules. 3. Select the row, and click Add Rule to Defined Rules to activate the rule and move it the Defined Rules section.

4. Use the Move Up and Move Down icons to change the order in which the rules

are matched against requests.

5. Click Apply to save the configuration for the request filter.

4-12 Oracle Fusion Middleware Administrators Guide for Oracle Web Cache

4.9 Configuring Rules for the Header Request Filter

The header request filter enables Oracle Web Cache to deny access based on HTTP header values. Rules for the header request filter are most effective for white box lists. See Section 4.2 for further information about the header request filter. To configure rules for the header request filter: 1. Navigate to the Web Cache Home page in Fusion Middleware Control. See Section 2.6.2 .

2. From the Web Cache menu, select Administration and then Request Filters.

The Request Filters Summary page displays.

3. From the Site list, select the site to apply the filter. See

Section 2.11.3 and Section 2.11.4 to create additional sites. You can configure filters and filter rules for specific sites or Undefined Sites. Oracle Web Cache directs client requests that do not match a defined site to the request filters configured for Undefined Sites.

4. Click the Header link.

The Header Request Filter page displays.

5. From the Audit list, select the level of action for Oracle Web Cache to include in

the audit log for the request filter.

6. From the Response to deny list, select the HTTP response for Oracle Web Cache to

return to browsers for requests that are denied by this request filter. The Close Connection option does not return any HTTP responses. It just closes the connection. 7. Create a new rule:

a. Click Create to create a row in the table.