-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HOSTS file filtering also blocking subdomains #1003
Comments
By design, uBO can load the hosts file and create filters from it, but as opposed to how the OS handles hosts files, uBO propagates the block rule to subdomains. |
Oh, omg, lol, so I've been fooled / confused / rick'rooled again, like here, also I have been fooled here as well, so I got rick-rooled already 3 times in a few days, by various descriptions, it's so funny. The uBO's wiki about the hosts feature lacks information about such feature being an intended, different than real hosts, behaviour, what may be confusing / misleading that there is a bug in uBO... perhaps such info about that it's intended behaviour, does exist somewhere deep in some uBO's release / commit description or somewhere else, I wonder how much and deep one must read and investigate to get real and proper info about some feature, this is just funny. Btw. may I ask why uBO propagates the block rule to subdomains? As uBO changes default hosts file behaviour it may lead to websites inaccessibility / breakages, not intended by the real hosts filter lists. Alternativiely if that's already answered somewhere in release/commit desciption then I'll not bother you anymore and will try to find the proper info myself. |
The documentation was updated to make this clear.
That's the way I decided it would work 6-7 years ago. |
So old ago, that despite looking deeply, there is nothing in both old uBO repo nor in the current uBO repo about uBO's HOSTS support implementation, neither in ISSUES's titles, nor in RELEASES's descriptions nor in COMMITS's descriptions, the only info is in the current repo's WIKI.
It's much better, but it still may be confusing / rickrolling, coz there is not clearly mentioned about difference between uBO's HOSTS syntax and the real HOSTS file syntax, one must still know the both and then deduce/notice the difference himself, and:
Hence, it would be good to add another sentence like:
|
Prerequisites
Description
Similiar to: gorhill/uBlock#1468
A bug or a feature...I hope I won't become fooled (aka rick'rolled / rickrolling) again by uBO's feature or description of hosts file in uBO , but most likely it's a bug, as there was already a similar bug that was reported and repaired: gorhill/uBlock#1468. As far I know hosts file entries should not block neither ccTLD nor subdomains as well. I checked it myself by adding
127.0.0.1 wp.pl
to my Windows's hosts file, restarted browser, and couldn't visitwp.pl
while I still could visitpoczta.wp.pl
, also see here. Apart from subdomains being blocked itself, blocked subdomains may lead to higher level domains breakages as well. I have a small army of$badfilter
lines in uBO to unbreak all websites broken by hosts lists I use in uBO, wonder how many of websites are broken/inaccessible due to the bug, and not due to hosts lists's false hits. Also from uBO's wiki: " the interpretation must be "block network requests to the siteexample.com
" " - soxxx.example.com
site should not be blocked.A specific URL where the issue occurs
Example:
https://poczta.wp.pl/
Steps to Reproduce
1 Add example rule
wp.pl
or127.0.0.1 wp.pl
to uBO's My filters pane and save it2 Visit
wp.pl
(can not visit) and thenpoczta.wp.pl
(can not visit)3 uBO saying
poczta.wp.pl
is blocked by||wp.pl^
Expected behavior:
The example rule
wp.pl
or127.0.0.1 wp.pl
should not block subdomainsActual behavior:
The example rule
wp.pl
or127.0.0.1 wp.pl
blocks subdomainsYour environment
The text was updated successfully, but these errors were encountered: