Skip to main content
bwelsberg
New Member
April 18, 2012
Question

Regex does not work properly

  • April 18, 2012
  • 2 replies
  • 2181 views
I try to use URL Filter and make my own list of exeptions. If I want to pass: www.domeny.com But block all other domain' s ie.: www.domeny.com.pl www.domeny.com.fakedomain.com ... 1 milion combination etc. I entered following regex' es: Pass: ^www\.domeny\.com\/.* Block: . But in Pass regex - slash symbol is not visible in URL, and i can' t write regex whitch match end of domain string, becouse I can' t differ domain name from folder at the end of URL. If I enter following regex: ^www\.domeny\.com& All other pages in this domain does not match this filter. ^www\.permen\.pl\?c=gra-permen$ = www.permen.pl/?c=gra-permen <> ^www\.permen\.pl\/\?c=gra-permen$ What about this SLASH? FG110C Firmware 4.0 mr3

    2 replies

    ede_pfau
    SuperUser
    SuperUser
    April 18, 2012
    Try entering the slash as a character class: ' ^www\.domeny\.com[/]' I would not try to specify a trailing pattern here. But for the blocking pattern ' ^www\.domeny\.com[/].+' would demand a trailing part.
    bwelsberg
    bwelsbergAuthor
    New Member
    April 18, 2012
    @ede_pfau It does not work. ... Now I have firmware 4.0 mr3 patch3 I' ll try to update firmware to patch6
    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!