Link11 WAAP
v2.16
v2.16
  • Link11 WAAP v2.16 Portal
  • Introduction
  • Getting Started
  • Setup Checklists
  • Marketplace onboarding
  • Console UI Walkthrough
    • General UI flow
    • Traffic
      • Traffic Concepts
      • Dashboard
      • View Log
    • Security
      • Security Section Concepts
      • Dynamic Rules
      • Quarantined
      • Profiles
        • Profile Concepts
        • Profiles
        • ACL Policies
        • WAF/IPS Policies
        • Custom Signature
      • Args Analysis
      • Tag Rules
      • Rate Limiting
      • Cloud Functions
    • Settings
      • Web Proxy
      • Backend Services
      • Error Pages
      • SSL
      • DNS
      • Planet Overview
      • Account
  • Using the product
    • Best Practices
      • Saving and Publishing Your Changes
      • Enabling Passive Challenges
      • Using the Reblaze Query Box
      • Understanding and Diagnosing Traffic Issues
    • How Do I...
      • Ban, Unban, and Whitelist Traffic Sources
      • Bypass Rate Limits for Loadtesting
      • Control Caching Behavior
      • Filter by Content
      • Quickly Block an Attacker
      • Secure Traffic from a Third-Party Page
      • Set Rate Limits and Exemptions
      • Set up SIEM/SOC integration
      • Video Tutorials
        • DNS Training
    • API
      • Reblaze REST API
      • Mobile SDK
  • Reference Information
    • Access log-structure
    • Acronyms
    • Deployment Terminology
    • Hostile Bot Detection / RCSI
      • Environmental detection and browser verification
      • Client authentication
      • Biometric behavioral verification
    • HTTP Response Codes
    • Pattern Matching Syntax
    • Signatures
    • Tags
    • TTL Expression Syntax
  • Support
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Reference Information

Pattern Matching Syntax

used for specifying matching conditions

PreviousHTTP Response CodesNextSignatures

Last updated 3 years ago

Was this helpful?

Within the Reblaze interface, there are several features that require matching conditions to be specified.

The text boxes accept strings or PCRE (Perl Compatible Regular Expressions). If you are unsure of PCRE syntax, you can test your expression at sites such as , which will show you how it will be parsed.

Below are some examples of syntax for specifying matching patterns.

Functionality

Syntax

Remarks

Match /Images/ or /images/ or /IMAGES/

~* /images/

Case insensitive, regular expression matching.

Match URLs that ends with .DOC or .PDF

~ \.(DOC|PDF)$

Case sensitive, regular expression matching.

Match URLs that ends with .gif or .jpg

~* \.(gif|jpg)$

Case insensitive, regular expression matching.

Match exact URL, e.g. Root / or /admin

= / or = /admin

Searching stops immediately (this match is top priority).

Match all URLs starting with /documents/

/documents/

System will continue search for a regular expression match. This will be matched only if none will be found.

Prioritize URLs starting with /documents/

^~ /documents/

^~ means - match and halt searching, i.e. regular expressions will not be checked.

Match 'entire site' (anything else)

/

Matches any URL since all begins with "/". However, regular expressions and longer entries will take priority.

A common pattern is for matching all static content. This pattern in full is:

~* \.(gcur|htc|aif|aiff|au|avi|bin|bmp|cab|cct|cdf|class|doc|dcr|dtd|exe|flv|gcf|gff|gif|grv|hdml|hqx|ico|ini|jpeg|jpg|js|mov|mp3|nc|pct|pdf|png|ppc|pws|swa|swf|txt|vbs|w32|wav|wbmp|wml|wmlc|wmls|xsd|zip|webp|jxr|hdp|wdp|bz2|map|ttf|ttc|otf|eot|woff|css)$

https://regex101.com