TechnikEmpire / HttpFilteringEngine

Transparent filtering TLS proxy.
Mozilla Public License 2.0
60 stars 33 forks source link

Enhance $domain= operator #70

Closed TechnikEmpire closed 8 years ago

TechnikEmpire commented 8 years ago

Presently, the $domain= operator isn't used quite correctly (from my understanding). It's my understanding that these values are used within a browser context. So you can see that some page on example.com is loading an image from exampleb.com, and the filter is ||exampleb.com$domain=example.com, then you can determine within the context of that page whether this rule applies or not.

We don't have a browser context, but what we do have is the Referer field. We can fake this context-based detection to an acceptable margin of error by using the Referer domain as a key when matching filters. This should be done to enhance conformance with the intended action of filtering rules.

TechnikEmpire commented 8 years ago

Closing as duplicate of #93. Will not be resolved due to #91.