Version: v2023-05-30 | Includes use: Yes |
---|
Criterion name: Path
Matches the URL's non-hostname path component.
Default criterion
These samples reflect the criterion's default settings. You can use these as is in your configurations or make adjustments based on the criterion's available options.
data "akamai_property_rules_builder" "path" {
rules_v2023_05_30 {
name = "Path"
comments = "Matches the URL's non-hostname path component."
criterion {
path {
normalize = false
values = []
match_case_sensitive = false
match_operator = "MATCHES_ONE_OF"
}
}
}
}
"criterion": [
{
"name": "path",
"options": {
"normalize": false,
"values": [],
"matchCaseSensitive": false,
"matchOperator": "MATCHES_ONE_OF"
}
}
]
Options
Option | Description |
---|---|
match_operator |
Matches the contents of the
values array. Value is one of:
|
values |
Matches the URL path, excluding leading hostname and trailing query parameters. The path is relative to the server root, for example
/blog . This field allows wildcards, where ? matches a single character and * matches zero or more characters. For example, /blog/*/2014 matches paths with two fixed segments and other varying segments between them.
|
match_case_sensitive |
Sets a case-sensitive match.
|
normalize |
Transforms URLs before comparing them with the provided value. URLs are decoded, and any directory syntax such as
../.. or // is stripped as a security measure. This protects URL paths from being accessed by unauthorized users.
|