gorhill / uBlock

uBlock Origin - An efficient blocker for Chromium and Firefox. Fast and lean.
GNU General Public License v3.0
45.8k stars 3.06k forks source link

This address bild.de #821

Closed spec1re closed 8 years ago

spec1re commented 8 years ago

Thanks! :)

ghost commented 8 years ago

I'm playing with the Inline script tag filtering (I love it.) since few hours and this filter works too:

bild.de##script:contains(ad_smart_site_id)

Nice try Bild!

gorhill commented 8 years ago

Ok, I thought OP wanted me to add the filters above -- these were not uBlock Origin-specific so I closed the issue.

Trying the build.de site, I understand they redirect if they detect a blocker. I will add the proper inline script tag: bild.de##script:contains(/^\s*?de.bild.cmsKonfig/).

gorhill commented 8 years ago

Heh: http://www.pcworld.com/article/2992434/browsers/sorry-ad-blockers-german-news-site-bild-says-nein.html:

Effective Tuesday, anyone attempting to visit Bild.de with an active browser extension such as AdBlock Plus or uBlock origin, will be redirected to a landing page that says (in German), “With an Adblocker activated, you can no longer visit Bild.de.”

Tip: I advise to surf pcworld.com in medium mode, site is bloated with 3rd parties.

gorhill commented 8 years ago

Actually, this plain filter works as well:

||code.bildstatic.de/*/bild/built/konfig/js/packages/core.js$domain=www.bild.de,script

This means this will also work on Chromium.

Algorithmus commented 8 years ago

There's now an additional inline script that checks if core.js objects are loaded. It should probably be blocked as well. Looks something like this:

 (function(){
  var str = '<div style="height:1000px;position:fixed;width:100%;z-index:50000;background-color:#fff; top:20px; left:0;"> <div style="margin:48px auto;width:725px;border:1px solid #ccc;padding: 40px;text-align:center;"><h2 style="font-size:40px;line-height:50px;">Warum sehe ich BILD.de nicht?</h2> <span style="font-size:30px;line-height:40px;color:#454545;">Sie haben Javascript für ihren Browser deaktiviert.<br />Aktivieren Sie Javascript jetzt, um unsere Artikel wieder lesen zu können.</span> </div> </div>'; 
  if(!de || !de.bild || !de.bild.user || !de.bild.env || !de.bild.events) {
   document.querySelector('body').innerHTML = str;
  }
 })();

Not sure what exactly would be the best way to target it without blocking anything else, but I'm sure some form of bild.de##script:contains(...) should work. I'm not on a recent Firefox fork right now.

gorhill commented 8 years ago

There's now an additional inline script that checks if core.js objects are loaded

This was addressed earlier today in this commit.

mom20xx commented 8 years ago

suggested solutions like

bild.de##script:contains(/^\s*de.bild.cmsKonfig/) 
bild.de##script:contains(Javascript)

are currently not working with ublock origin 1.2.1

for me only this is working with ublock origin 1.2.1

bild.de#@#.textAd
bild.de#@#.text_ads
bild.de#@#.text_ad
bild.de#@#.text-ads
bild.de#@#.text-ad-links
bild.de#@#.text-ad
bild.de#@#.pub_728x90
bild.de#@#.pub_300x250m
bild.de#@#.pub_300x250
bild.de###fullBanner
@@||smartadserver.com/diff/*/smartad.js$domain=bild.de
@@||sascdn.com^$domain=bild.de,script

edit: please ignore this. i had a caching problem. purging cache. restarting firefox and update ublock origin filters fixed it. your solution is working

sluTTYusr commented 8 years ago

None of the solutions suggested above are working with 1.2.1 anymore.

gorhill commented 8 years ago

@mom20xx

are currently not working with ublock origin 1.2.1

Works fine from here on Nightly & FF41. What browser was this? As said in the documentation, inline script tag filtering is not supported on Chromium-based browsers or older versions of Firefox (those not implementing beforescriptexecute support).

A workaround for Chromium-based browsers is to disable all inline script tags using:

||www.bild.de^$inline-script

This can also be done through dynamic filtering:

a

There is a side-effect however with such filter, it disables some functionality on the site.

sluTTYusr commented 8 years ago

Sorry, for me it still does not work. Browser is Pale Moon Version: 25.7.3 (x64)

gorhill commented 8 years ago

Sorry, for me it still does not work.

As documented, older versions of Firefox (on which Pale Moon is based) do not support inline script tag filtering. However, wholesale inline script filtering works for Pale Moon, and I confirm this works around Bild's block. See my comment above for Chromium-based browsers, this will also work for Pale Moon.

Block wholesale inline scripts, then enter bild.de in address bar, it works.

sluTTYusr commented 8 years ago

You are right. ||www.bild.de^$inline-script works. I have the Ghostery add on installed and set it to pause blocking. However, only after disabling the add on the bild.de website displays.

Hrxn commented 8 years ago

You mean you have Ghostery and uBlock running at the same time?

sluTTYusr commented 8 years ago

Yes. Most of the time.

Hrxn commented 8 years ago

But why? What are the possible benefits?

sluTTYusr commented 8 years ago

Sometimes more is better. https://www.diffchecker.com/zapbh5b9

gorhill commented 8 years ago

https://www.diffchecker.com/zapbh5b9

The best use for that diff is to see what to block globally using dynamic filtering to get the same result as the other extensions. In this specific case:

So six global dynamic rules on top of uBO's default settings and you are as well covered -- without the overhead of two extensions which almost completely overlap.

seanrand commented 8 years ago

Just FYI, this is starting to get political.

News article In German: http://www.golem.de/news/adblocker-sperre-bild-de-mahnt-youtuber-wegen-erklaervideo-ab-1510-117011.html

Der Axel-Springer-Verlag verteidigt seine Werbeblockersperre auf den Seiten von Bild.de nun auch mit juristischen Mitteln. In einem Schreiben vom 20. Oktober 2015 mahnt die Kanzlei Lubberger Lehment im Auftrag der Bild GmbH einen Nutzer ab, der auf Youtube.com ein Video veröffentlichte, wie sich die Sperre mit Hilfe von Filterbefehlen in dem Werbeblocker Adblock Plus umgehen lässt. In dem Brief [...] verlangt die Kanzlei eine Unterlassungserklärung und die Zahlung von Anwaltskosten in Höhe von fast 1.800 Euro. Der Gegenstandwert wird mit 50.000 Euro angegeben. Der Verlag bestätigte Golem.de, gegen "alle" vorgehen zu wollen, die die Anti-Adblocker-Initiative "unlauter umgehen".

My rough translation:

The digital publishing house Axel Springer has now begun to defend its Adblock-block on Bild.de through judicatory means. In a letter from the 20th October 2015, the law office Lubberger Lehment issued a cease and desist order on behalf of Bild GmbH against a Youtube user who published a video explaining how to circumvent the block using Adblock filters and Adblock Plus. In the letter, the law office demands a declaration to cease and desist as well as the payment of lawyer's fees amounting to almost 1,800 Euros. The letter declares the amount in controversy as 50,000 Euros. The publisher confirmed to Golem.de that it intends to proceed against "anyone" who attempts to circumvent the Adblock-blocking campaign through unfair means.

Might be worth noting that Axel Springer et. al. filed suits against Germany-based Eyeo over Adblock Plus in the past[1] and their legal standing in this case seems to be shaky at best.

I couldn't find any articles on this in English, I'll check again in a few days as this news probably hasn't been picked up outside of Germany yet.

Might be time for someone to throw together a blocklist for all Axel Springer websites, similar to murdochblock.info.

Sorry for derailing this, wasn't sure if I should open a non/meta-issue for this but wanted to share.

[1] http://www.reuters.com/article/2015/09/29/axel-sprngr-adblock-idUSL5N11L11Q20150929

gorhill commented 8 years ago

a Youtube user who published a video explaining how to circumvent the block using Adblock filters and Adblock Plus

Any link to that Youtube video?

seanrand commented 8 years ago

The video has been set to private before I had a chance to watch it. Haven't found any mirrors yet. According to comments on the article, it's at https://www.youtube.com/watch?v=W7_iPbFXW7I The user's channel is https://www.youtube.com/channel/UCz1NzK7ttY0EkEjCEhWspVw

Hrxn commented 8 years ago

Just FYI, this is starting to get political.

I'd say this is starting to get interesting. Get your popcorn ready. ;-)

Any link to that Youtube video?

AFAIK, the video just showed how to use the instructions given in the EasyList Germany thread for bild.de.

Edit:

Looks like they had to clean up their own ABP forum

And things get even better: http://heise.de/-2854649

Axel Springer won an injunction given by the infamous LG Hamburg (court in Germany known for getting almost everything wrong :smirk:) against Eyeo (company behind Adblock Plus). Although this is not final, technically.

But I think the angle behind this decision is "interesting", Axel Springer argued that using a blocker against their site is a violation of the German copyright protection law, specifically the section outlawing the circumvention or disabling of copyright protection mechanisms integrated into software.

Here is said law: http://dejure.org/gesetze/UrhG/95a.html

The funny thing is, this has never been used in the context of websites or the web in general. That was definitely not the original intention or scope of that law.

Anyway, I think that bild.de ends up being a useful benchmark for blockers ;-)