active-charging service ruledef http referer

Configures rule expression to match the value in the HTTP Referer request-header field.

Syntax

http referer [ case-sensitive ] operator referer_name 

case-sensitive

Specify that the rule expression be case-sensitive. By default, rule expressions are not case-sensitive.

operator

Specify how to match.

Must be one of the following:

  • != : Does not equal.

  • !contains : Does not contain.

  • !ends-with : Does not end with.

  • !present : Not present.

  • !starts-with : Does not start with.

  • = : Equals.

  • contains : Contains.

  • ends-with : Ends with.

  • regex : Regular expression.

  • starts-with : Starts with.

referer_name

Specify the HTTP referer name to match.

Must be a string.

Usage Guidelines

Use this command to define rule expressions to match value in HTTP Referer request-header field. This feature allows an operator to collect or track all URLs visited during a particular subscriber session. These URLs include the entire string of visited URLs, including all referral links. This information is output in an Event Data Record (EDR) format to support reporting or billing functions.

Example

The following command defines a rule expression to match the HTTP referer "cricket.espn.com":
http referer = cricket.espn.com