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.
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 fromexampleb.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 theReferer
domain as a key when matching filters. This should be done to enhance conformance with the intended action of filtering rules.