Web Agents

Regular Expressions for Not-Enforced URLs

The agent evaluates each expression against the complete request URL, including the protocol, fully qualified domain name, port, and path, and the expression matches anywhere in that URL. An expression that specifies only a path, such as /public, matches any request URL containing that string, even in the host name or query.

Regular expressions are evaluated differently by different engines. When you use regular expressions in not-enforced lists, make sure the expressions are:

  • Fully anchored using the ^ character.

  • Correctly account for the scheme, host, and port of the URL.

  • Correctly account for the query string.

Thoroughly test that the correct, and possibly incorrect, URLs are enforced and not enforced as expected.

When true, allow the use of Perl-compatible or ECMAScript-compatible (IIS) regular expressions in Not-Enforced URL List settings.

Default: false

Property name

com.forgerock.agents.notenforced.url.regex.enable
  Introduced in Web Agent 4.x

Function

Not-enforced

Type

Boolean: true returns true; all other strings return false.

Bootstrap property

No

Required property

No

Restart required

No

AM console

Tab: Application (From AM 7)

Title: Regular Expressions for Not-Enforced URLs