Results 1 to 4 of 4

Thread: URL matcher

  1. #1
    Untangle Ninja Jim.Alles's Avatar
    Join Date
    Jul 2008
    Location
    Central PA
    Posts
    1,712

    Default URL matcher

    This addresses a discussion from a troubleshooting assist thread that stemmed from a misunderstanding of the documentation on the use of wildcards. I want to post a link to a document that appears to summarize the two major types of pattern matching in Linux.

    This applies to [Site Block] and [Site Pass] tabs in the Web Filter App.

    It does not have any connection to Untangle or their documentation. But it is the closest thing I have found that makes sense of some parts of the Wiki Entry. It also provides an indication that 'Regular Expressions' apply, not Glob matching.

    However, without evaluating the code this is still conjecture.

    tldp.org/LDP/GNU-Linux-Tools-Summary/html/x11655

    enjoy.
    Sam Graf likes this.

  2. #2
    Master Untangler Sam Graf's Avatar
    Join Date
    Feb 2016
    Location
    Michigan
    Posts
    927

    Default

    So Untangle's Glob matching is just a gob of matching techniques.

    There are times when I wish the Untangle wiki was like the PHP Manual. This is one of those times.
    Jim.Alles likes this.

  3. #3
    Untangle Ninja Jim.Alles's Avatar
    Join Date
    Jul 2008
    Location
    Central PA
    Posts
    1,712

    Default

    Oh better yet: This is Meta.
    I visually matched a pattern in the wiki entry with a pattern in the wildcards document. no guarantee it means anything!

    Just my poor brain associating two shiny things.


  4. #4
    Untangle Ninja Jim.Alles's Avatar
    Join Date
    Jul 2008
    Location
    Central PA
    Posts
    1,712

    Default [Site Block] and [Site Pass] tabs

    Quote Originally Posted by Jim.Alles View Post
    This addresses a discussion from a troubleshooting assist thread that stemmed from a misunderstanding of the documentation on the use of wildcards. I want to post a link to a document that appears to summarize the two major types of pattern matching in Linux.

    This applies to [Site Block] and [Site Pass] tabs in the Web Filter App.

    It does not have any connection to Untangle or their documentation. But it is the closest thing I have found that makes sense of some parts of the Wiki Entry. It also provides an indication that 'Regular Expressions' apply, not Glob matching.
    Here is a tool to use for evaluating and interpreting Regular Expressions. https://regex101.com/ If you select the ECMAScript flavor (for JavaScript), things fall into place quite nicely.

    use this for the regular expression:
    Code:
    ^([a-zA-Z_0-9-]*\.)*site.*$
    where the word "site" is an example of the the text entered into the Site field in NGFW.

    Don't try to use additional wildcards here, it won't do what you want.
    Last edited by Jim.Alles; 02-28-2020 at 06:50 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO 3.6.0 PL2