Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
bwelsberg
New Contributor

Regex does not work properly

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 2
ede_pfau
SuperUser
SuperUser

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.
Ede Kernel panic: Aiee, killing interrupt handler!
Ede Kernel panic: Aiee, killing interrupt handler!
bwelsberg
New Contributor

@ede_pfau It does not work. ... Now I have firmware 4.0 mr3 patch3 I' ll try to update firmware to patch6
Labels
Top Kudoed Authors