Abnormal SecuritySoftware Engineer · OnsiteCodemia practiceResolve URL Allow And Block Rules With Most Specific Match
Implement a policy engine that stores admin rules like `*.sharepoint.com/*` allow or `login.example.com/oauth/authorize` block, and for any URL returns the action of the most specific matching rule, where an exact host beats a wildcard, a deeper host beats a shallower one, a longer path beats a shorter one, and block wins ties.