Skip to content
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

Popups with data:text/html... URL can't be blocked #1735

Closed
rayman89 opened this issue Jun 19, 2016 · 5 comments
Closed

Popups with data:text/html... URL can't be blocked #1735

rayman89 opened this issue Jun 19, 2016 · 5 comments

Comments

@rayman89
Copy link

rayman89 commented Jun 19, 2016

I noticed there are many sites now that the first click you
do on the page it makes you open an other tab or pop-up. The pop-up/tab
is almost always closed immediately by ublock but is it possible to
disable that tab/pop-up from ever opening? Thanks for your time.

Example: http://animeflv.net/ or http://gorillavid.in/anq4ij0u58ug1

I'm using firefox 45 ESR x64 on W7 x64

The pop-ups and tabs that open have this format:

data:text/html;base64,PGh0bWw+PGJvZHk+PHNjcmlwdD52YXIgZXBvY2ggPSBuZXcgRGF0ZSgpLmdldFRpbWUoKTt2YXIgX2Vwb2NoRnJvbVdpbmRvd05hbWUgPSB3aW5kb3cubmFtZS5zcGxpdCgnXycpWzNdO2lmKGVwb2NoIC0gX2Vwb2NoRnJvbVdpbmRvd05hbWUgPCAyNTApe3dpbmRvdy5sb2NhdGlvbj0nJzt9PC9zY3JpcHQ+PC9ib2R5PjwvatbD4=

I tried ||data:text/html^$popup to prevent it for opening but it's the same.

I have the default options enabled with anti adblock killer, spa, malaware domains, easy privacy, easy list all the ublock filters minus experimental.

@gorhill
Copy link
Owner

gorhill commented Jun 19, 2016

is it possible to disable that tab/pop-up from ever opening?

Not really. As shown in uBO's logger, a new tab with the URL about:blank, then the real URL http://animeflv.net/_a: is used, which itself redirect to firegetbook.com, which is the one filtered as a popup.

You can use the no-popups switch for that site to have the popups closed earlier, but this still won't prevent the tab from opening. Custom filter ||animeflv.net/_a:$popup will also cause the tab to be closed earlier, maybe ||animeflv.net/_a:$popup,document might be better.

@gorhill gorhill closed this as completed Jun 19, 2016
@rayman89
Copy link
Author

Thank you.

@monolifed monolifed mentioned this issue Aug 27, 2016
@gorhill
Copy link
Owner

gorhill commented Sep 13, 2016

In light of this new ABP issue, I decided to run some tests with both Firefox and Chromium to see if uBO could intercept these data: URL. Turns out, it's possible.

@gorhill gorhill reopened this Sep 13, 2016
gorhill added a commit that referenced this issue Sep 13, 2016
@rayman89
Copy link
Author

Thanks a lot. Do we need to add the data:text/html;base64$popup or something for it to work?

@gorhill
Copy link
Owner

gorhill commented Sep 13, 2016

Do we need to add the data:text/html;base64$popup or something for it to work?

Turns out there is already such a filter in EasyList. But it doesn't work in Chromium because https://forums.lanik.us/viewtopic.php?f=62&t=32826. Until it is fixed, you may want try |data:$popup.

@gorhill gorhill changed the title data:text/html Popups with data:text/html... URL can't be blocked Sep 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants