8
24
Fork
You've already forked nuMatrix
4

Show source of host blacklisting #526

Closed
opened 2016年03月18日 16:30:36 +01:00 by dag · 4 comments
dag commented 2016年03月18日 16:30:36 +01:00 (Migrated from github.com)
Copy link

My apologies if this has been discussed previously; I could find no relevant issues.

I'd like to be able to see where a blacklisting of a hostname is coming from, i.e. which hosts file or I suppose, which local rule. The logical place for this would be in the logger, as in uBlock, although I would certainly not mind some way to see this in the matrix itself if the UI could allow for it sensibly (not sure).

Optimally I'd like to know all hosts files a hostname is in, since there is often quite a bit of overlap, but knowing one source would be preferable over not knowing anything. I can understand if uMatrix isn't storing that information, for efficiency, but perhaps it could simply scan all active hosts files when you ask for this, since it won't be something happening all the time in the background or without user interaction? I think it's fine if clicking for more details about a request in the logger is comparably slow.

This would go particularly well with #525 giving you a way to see the hpHosts classification of a hostname, and would also be useful for debugging false-positives and tell you which hosts file to possibly disable.

edit:

It would also be very useful if this information was listed on the block notice page for 1st-party requests.

My apologies if this has been discussed previously; I could find no relevant issues. I'd like to be able to see where a blacklisting of a hostname is coming from, i.e. which hosts file or I suppose, which local rule. The logical place for this would be in the logger, as in uBlock, although I would certainly not mind some way to see this in the matrix itself if the UI could allow for it sensibly (not sure). Optimally I'd like to know all hosts files a hostname is in, since there is often quite a bit of overlap, but knowing one source would be preferable over not knowing anything. I can understand if uMatrix isn't storing that information, for efficiency, but perhaps it could simply scan all active hosts files when you ask for this, since it won't be something happening all the time in the background or without user interaction? I think it's fine if clicking for more details about a request in the logger is comparably slow. This would go particularly well with #525 giving you a way to see the [hpHosts classification](http://hosts-file.net/?s=classifications) of a hostname, and would also be useful for debugging false-positives and tell you which hosts file to possibly disable. _edit:_ It would also be very useful if this information was listed on the block notice page for 1st-party requests.
JeffCarpenter commented 2019年11月10日 23:47:08 +01:00 (Migrated from github.com)
Copy link

@gorhill would you be open to PRs for this feature?

@gorhill would you be open to PRs for this feature?
arek added this to the (deleted) project 2023年10月29日 22:50:13 +01:00

The extension merges all selected hosts files into a single HNTrieContainer binary trie, once a hostname is inserted, the record of which file it came from is gone. Could use OPs suggestion to scan lists but that could be slow depending on how many lists there are and how big they are.

Closing without a fix

The extension merges all selected hosts files into a single HNTrieContainer binary trie, once a hostname is inserted, the record of which file it came from is gone. Could use OPs suggestion to scan lists but that could be slow depending on how many lists there are and how big they are. Closing without a fix

Actually, I'll benchmark the performance first

Actually, I'll benchmark the performance first
arek added this to the v1.0 milestone 2026年06月19日 10:23:48 +02:00
arek added this to the (deleted) project 2026年06月19日 10:25:50 +02:00
arek added this to the v1.0 project 2026年06月19日 10:29:27 +02:00

Implemented it so that the user has to explicitly go in the details tab to show source to performance impact isnt a factor

Implemented it so that the user has to explicitly go in the details tab to show source to performance impact isnt a factor
arek 2026年06月19日 11:42:11 +02:00
  • closed this issue
  • added the
    done
    label
This discussion has been locked. Commenting is limited to contributors.
No Branch/Tag specified
master
dev
v0.1.2
v0.1
0.0.0.8b
0.0.0.7b
0.0.0.5b
0.0.0.4b
0.0.0.3b
0.0.0.2b
0.0.0.1b
1.4.3b0
1.4.2
1.4.1b6
1.4.1b5
1.4.1b4
1.4.0
1.3.17b2
1.3.17b1
1.3.16
1.3.14
1.3.12
1.3.10
1.3.8
1.3.6
1.3.4
1.3.3b9
1.3.3b8
1.3.2
1.3.0
1.2.0
1.1.20
1.1.18
1.1.16
1.1.14
1.1.12
1.1.11b0
1.1.10
1.1.8
1.1.7rc0
1.1.7b0
1.1.6
1.1.4
1.1.0
1.0.0
0.9.3.6
0.9.3.4
0.9.3.3
0.9.3.2
0.9.3.1
0.9.3.0
0.9.2.1
0.9.2.0
0.9.1.2
0.9.1.1
0.9.1.0
0.9.0.1
0.9.0.0
0.8.1.4
0.8.1.3
0.8.1.1
0.8.1.0
0.8.0.1
0.8.0.0
0.8.0.0-rc.2
0.8.0.0-rc.1
0.8.0.0-rc.0
0.8.0.0-alpha.19
0.8.0.0-alpha.18
0.8.0.0-alpha.17
0.8.0.0-alpha.16
0.8.0.0-alpha.15
0.8.0.0-alpha.14
0.8.0.0-alpha.11
0.8.0.0-alpha.10
0.8.0.0-alpha.9
0.8.0.0-alpha.8
0.8.0.0-alpha.7
0.8.0.0-alpha.6
0.8.0.0-alpha.4
0.8.0.0-alpha.3
0.8.0.0-alpha.2
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
arek/nuMatrix#526
Reference in a new issue
arek/nuMatrix
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?