<div dir="ltr">Hey all,<div><br></div><div>First post, so feel free to swat down anything I say that is way off base or totally ignorant. </div><div><br></div><div>I started looked at the code recently, with specific focus on the code that handles matching rules to a given host (much of which is in the "potentiallyApplicableRulesets" method in rules.js). Some tracing there led me to start strategically grepping the rule files a bit and I noticed that some rules had target host patterns of the following form: "x.y.z.*".</div>
<div><br></div><div>I suppose my first and possibly naive question is why are target hosts of that form allowed (or necessary)? One example rule file is "GoogleMainSearch.xml", and while it has several instances of "google.something.*", it doesn't seem to "use" these cases in the from/to mappings. I also foresee a set of security problems when allowing to match a rule on something like "www.google.*". </div>
<div><br></div><div>I won't be overly verbose for my motivation, but the reason I ask the above question is to help guide me in thinking about new possible data-structures that could represent the entire set of rules, as well as more efficient algorithms to find and apply potentially applicable rules.</div>
<div><br></div><div>Cheers!  </div><div><div><br></div>-- <br>- John K. Stinson<br>
</div></div>