Page 1 of 1
Base64 support
Posted: Sat May 14, 2016 10:33 pm
by Atak_Snajpera
Can adblock plus automatically decode links encoded in base64 format?
Example
http://iwtjxgfu.wp.pl/Uk0vQm94LzIwMTYtM ... 93cC5qcGc=
I can't create blocking rules in this case. BTW. Decoded link looks like this.
http://iwtjxgfu.wp.pl/RM/Box/2016-05/ja ... 200_wp.jpg
Re: Base64 support
Posted: Sat May 14, 2016 10:43 pm
by mapx
You could block the whole subdomain (probably is dedicated to ads)
iwtjxgfu.wp.pl
or another approach (block all subdomains and whitelist only those without ads)
see here:
forum/viewtopic.php?p=150078#p150078
Re: Base64 support
Posted: Mon May 16, 2016 12:45 am
by lewisje
Atak_Snajpera wrote:Can adblock plus automatically decode links encoded in base64 format?
That would require a major change to how ABP works: Currently, it intercepts HTTP requests to decide whether to block or allow, but data URIs have no request associated with them, so the best ABP can do now is hide it, if the image or a containing element is selectable with a CSS selector.
I believe there were performance-related reasons for not just outright removing HTML elements that are hidden, but maybe that could be re-considered in light of the increasing use of data URIs.
Re: Base64 support
Posted: Mon May 16, 2016 3:15 pm
by Atak_Snajpera
mapx wrote:You could block the whole subdomain (probably is dedicated to ads)
iwtjxgfu.wp.pl
or another approach (block all subdomains and whitelist only those without ads)
see here:
viewtopic.php?p=150078#p150078
As you can see that subdomain contains random letters. Those letters change from time to time.
I'm disappointed that Adblock Plus can't decode Base64 on fly. It looks like wp.pl has found a good way to avoid filters. Maybe guys behind uBlock will have solution for those links.
Re: Base64 support
Posted: Mon May 16, 2016 3:35 pm
by mapx
Read the second part of my post (and the linked post)
Re: Base64 support
Posted: Thu Jun 02, 2016 10:59 pm
by lewisje
Atak_Snajpera wrote:I'm disappointed that Adblock Plus can't decode Base64 on fly. It looks like wp.pl has found a good way to avoid filters. Maybe guys behind uBlock will have solution for those links.
The same issues would exist with uBlock Origin: Decoding Base64 isn't the problem, it's performantly
removing HTML content which is what you'd need to do in order to "block" content that is embedded in the page rather than loaded from a URL referenced by that page.
With that said, Raymond Hill
has figured out how to performantly block all inline scripts, and also how to block particular functions (but I think that's Firefox-only), but unless you provide a persuasive case for this new functionality, he'll tell you your brand-new GitHub Issue is invalid and summarily close it; also, I'm active there too, so if you propose it there, I'll call the idea stupid
there, just like I have a couple times before in the uBlock issues, unless gorhill takes the effort to directly say so himself instead of being brief about dismissing your ~revolutionary idea~ that he explicitly tells people not to use Issues to suggest.