Skip to main content

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.

class: SegmentCountUrlFilter
onMatch: EXCLUDE
count: 5

Usageโ€‹

Full configuration skeleton, with every option and its default
class: SegmentCountUrlFilter
count: 0
duplicate: false
onMatch: INCLUDE
separator: string

Propertiesโ€‹

PropertyTypeRequiredDefault
countintegerNo10
duplicatebooleanNofalse
onMatchenumNoINCLUDE
separatorstringNo/

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โ€‹

  • INCLUDE
  • EXCLUDE

separatorโ€‹

Regular expression matching an alternate segment separator (default is: /)