uBlockOrigin / uMatrix-issues

This is the community-maintained issue tracker for uMatrix
https://github.com/gorhill/uMatrix
123 stars 17 forks source link

Enabling allow and deny rules to top-domain only #282

Closed terapty closed 3 years ago

terapty commented 3 years ago

Prerequisites

Description

I'd like to be able to apply a rule only to the top-domain (or a sub-domain excluding descendants). This is more of a feature request. I am aware that the issue I describe is documented as normal behavior (I think in the "popup panel" part) and I was wondering if there is any technical, ethical (or otherwise) reason to this behavior and if a change could be considered. There are many cases in which I would like to allow for example a script from the top-domain to run without allowing sub-domain scripts to run (and I can't think of any examples in which denying top-domain elements without denying sub-domain elements would be useful, but I'm sure there are), this would help in enforcing a true "block all/allow exceptionally" policy.

A specific URL where the issue occurs

NA

Steps to Reproduce

  1. Allow/deny a top-domain element (script, xhr...)
  2. All sub-domains' element get white/blacklisted

Ruleset

NA

Supporting evidence

NA

Your environment

gorhill commented 3 years ago

Duplicate of https://github.com/gorhill/uMatrix/issues/584.

I refused such request in the past, this is the equivalent of asking me a grand rewrite uMatrix.