-
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
Add heuristic and selective blocking to javascript script #251
Comments
some updates. I managed to do this:
the assumption, as described in the pdf, is that the scripts making blocked requests are non-functional but tracking scripts. a test on the pages described above allows me to block anti-adblocks, for example, while keeping the page functional. furthermore, a refresh of the page makes very few non-cached requests, allowing a better understanding of whether new filters need to be added to the adblock list. |
steps forward. I have also added:
it's a hack, and it might be short-lived, but for now it seems to work. of the list above, so far no one notices adblock. |
yes, the anti-blocking also works for that site (EDIT: without active cosmetic filtering) |
Checking if the site connection is secure Again and again dragontea.ink needs to review the security of your connection before proceeding. |
some updates. Therefore, the route I had thought of to falsify the |
yes, the anti-blocking also works for that site (EDIT: without active cosmetic filtering) Sorry but i don't really get for the extra note, what is active cosmetic filtering? Is it "filter list"? I don't find any filter that really works without triggering anti ad block. |
is that process by which html elements identified as ads are hidden from view: adblocks in fact use css selectors to inform the browser that certain elements are to be hidden.
Now I am quite certain, there is no specific way to block anti-adblocks, not least because the simplest method is also the most efficient one.
and can be applied to any element, considering that the developer knows what his page should look like. |
I have expressed myself incorrectly. And in any case, blocking the entire script presupposes that the developer knows that the blocking has occurred, because the browser is on the side of the developer and not the user. |
I don't know how much helpful adding this would be, But I've seen the Brave Browser on Android doing it with accuracy. They somehow manage to block 90% of anti adblockers. Don't know how they're doing it. (Used that browser for 2 years almost after Bromite) Linking Source codes: Brave Browser: Brave's Adblock Engine: |
I don't know the functionality of brave's adblock, I'll have to look into it. from what I had seen, it has more support for ublock rules than adblock plus, but I hadn't seen abysmal differences. this also needs to be investigated further the first step here is lack of cname support. |
Another thing I might add for info, recently I've started seeing frequent ads on YouTube despite the Adblocker (both new and old) being enabled. No sure if it is also related to how Adblock Plus handles ad versus uBlock Origin |
Why not just replace ABP with uBlock? |
it's probably not clear, but what I'm aiming for here is rather to hide the adblock, whatever it is, without having to make changes to the csp or proxy on javascript calls as is normally done. That is, I try to explain what I intend to do, if a js code provides for something like this:
what I would like to do is to block the catch and deny the call to what I have already written (but not published yet) works, but not always, especially if the javascript code is mixed with code that the site needs to work. |
I haven't really understood what you said. So basically you want to fix the websites detecting the AdBlock? That's why I have to use a different browser for now - APK mirror and some websites make me wait. And can't you just copy some of the code of another open source chromium browser, brave for example? Maybe you're trying too hard. |
yes, that's the idea. but for now it only works with trivial anti-adblocks (most of those I have seen) and maybe it will only work with those.
well, it's not that I don't look at what others do, and that I try not to copy if I can.
that's the beauty of it. playing with chromium is a way of learning. |
I've managed to block the anti-adblockers by manually adding all uBlock filters to ABP. It took some time though. |
interesting, I'd like to see what you used and what gets blocked. |
@Xisrr1 |
I will. I'll create a new discussion soon. |
I guess you can use the one already created by you recently, or 1 of the other related ones, but a new one is OK as well. |
uBlock filters: I've copied every single filter from https://github.com/uBlockOrigin/uAssets/tree/master/filters by opening it in view mode, copying the web page link, and adding it to Cromite. AdGuard- Mobile ads: https://raw.githubusercontent.com/AdguardTeam/FiltersRegistry/master/filters/filter_11_Mobile/filter.txt Online Malicious URL Blocklist: https://malware-filter.gitlab.io/malware-filter/urlhaus-filter.txt Peter Lowe’s Ad and tracking server list: I couldn't find the .txt link :( Lastly, Easy list, and Easy privacy from Cromite. All these are the default filters that come with uBlock origin and that I use with Cromite now. Note 1: It is not perfect! I have noticed on one website (devuploads), it shows one banner ad, but that's not too bad. Note 2: Adding the base AdGuard filter will block ads better but the website will be able to recognize the AdBlock. Note 3: Even though I've added all uBlock origin filters to Cromite, it will still score less in AdBlock test websites, though a uBlock dev told me these aren't accurate anyway. Should I post in a discussion all the filter links? |
This website does detect the adblocker. Maybe post it on the uBlock subreddit. |
"Should I post in a discussion all the filter links?" "This website does detect the adblocker. Maybe post it on the uBlock subreddit." |
Can you give me more websites to test? |
As of now > Nothing specific that comes to mind, especially since I mostly use Kiwi, even tho Lemur supports extensions even better and even Edge now, but I don't like their UI at all, but you can probably test with host that are provided as DL methods for apps in msm (I'm not sure I should mention the full site name here). I fear that we are getting a bit off-topic here and those are better suited for other issue tickets, if I'm correct, I would ask uazo to not delete or hide my comments, but tell me if they are not OK being here, so I can delete them myself. Thanks in advance. |
I have seen that the brave code has a kind of ‘pagegraph’, which records all changes made to the page. |
Preliminary checklist
Is your feature request related to privacy?
Yes
Is there a patch available for this feature somewhere?
I'm working on it
Describe the solution you would like
Check whether it is possible to selectively block the execution of javascript:
please read https://arxiv.org/pdf/2302.01182.pdf
Describe alternatives you have considered
n/a
The text was updated successfully, but these errors were encountered: