SegmentCountUrlFilter
Filter by the number of reference segments.
Notesโ
Filters URLs based on the number of path segments (or duplicate segments) in the reference. URLs exceeding the configured segment count threshold are included or excluded depending on the onMatch setting.
Examplesโ
The above example will reject URLs with more than 5 forward slashes after the domain.
- YAML
- JSON
- XML
class: SegmentCountUrlFilter
onMatch: EXCLUDE
count: 5
{
"class": "SegmentCountUrlFilter",
"onMatch": "EXCLUDE",
"count": 5
}
<class>SegmentCountUrlFilter</class>
<onMatch>EXCLUDE</onMatch>
<count>5</count>
Usageโ
Full configuration skeleton, with every option and its default
- YAML
- JSON
- XML
class: SegmentCountUrlFilter
count: 0
duplicate: false
onMatch: INCLUDE
separator: string
{
"class": "SegmentCountUrlFilter",
"count": 0,
"duplicate": false,
"onMatch": "INCLUDE",
"separator": "string"
}
<segmentCountUrlFilter>
<class>SegmentCountUrlFilter</class>
<count>0</count>
<duplicate>false</duplicate>
<onMatch>INCLUDE</onMatch>
<separator>string</separator>
</segmentCountUrlFilter>
Propertiesโ
| Property | Type | Required | Default |
|---|---|---|---|
count | integer | No | 10 |
duplicate | boolean | No | false |
onMatch | enum | No | INCLUDE |
separator | string | No | / |
Property Detailsโ
countโ
Minimum number of segments.
duplicateโ
Use this option to count the number of duplicate segments instead.
onMatchโ
What to do with a reference once its segment count has been reached.
Allowed Valuesโ
INCLUDEEXCLUDE
separatorโ
Regular expression matching an alternate segment separator (default is: /)