- CheckMates
- :
- Products
- :
- Quantum
- :
- Security Gateways
- :
- Re: URL Filtering RegEx
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
URL Filtering RegEx
Hi
I want to block a URL in application layer. I have https inspection on.
I've made a Application/Site list with "URL's are defined as Regular Expression" and added some sites to it, but I'm struggling to figure out how I would write this URL in RegEx form:
http://lexin.nada.kth.se/lexin/#main=4;
I've tried many different ways but it still not working. Other sites working.
I looked at https://regex101.com/ and I got a match on my expressions but it is still not working.
Thank you
Rikard
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Minor note: this will only match HTTP. The site is available via HTTPS, and the expression above won't match it. If you change the opening to this:
https?:\/\/
it should match both HTTP and HTTPS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So the complete solution is:
https?:\/\/lexin\.nada\.kth\.se\/lexin\/\#main=4;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What version/JHF level?
What precise regexes have you tried?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi!
we are running r80.40 take 87.
I have tried
.lexin.nada.kth.se/lexin/#main=4;
.lexin.nada.kth.se\/lexin\/#main=4;
.lexin.nada.kth.se/lexin/*main*4*
.lexin.nada.kth.se/lexin/.main.4.
.lexin.nada.kth.se\/lexin\/.main.4;
.lexin.nada.kth.se\/lexin\/*main*4;
and so on. I think the #or the = causing the problem because this url works just fine: .lexin.nada.kth.se/lexin/bildtema-survey.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why not block entire http://lexin.nada.kth.se/ ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We want to reach all the pages on that site except
.lexin.nada.kth.se/lexin/#main=4; and
.lexin.nada.kth.se/lexin/bildtema-survey.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use
http:\/\/lexin\.nada\.kth\.se\/lexin\/\#main=4;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I will try this. Thank you for the help!
/Rickard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
And did it work as needed ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Sorry for the late reply, I have not had the opportunity to test until today.
It did not work as needed. I have a block rule with this regex but I can still reach the site. See attached screenshot. Is it possible for you to try this in a lab?
I tried both http and https.
/Rickard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Minor note: this will only match HTTP. The site is available via HTTPS, and the expression above won't match it. If you change the opening to this:
https?:\/\/
it should match both HTTP and HTTPS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Very true !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So the complete solution is:
https?:\/\/lexin\.nada\.kth\.se\/lexin\/\#main=4;
