Integrate Nano Defender with uBlock Origin to block Anti-Adblocker - gHacks Tech News

Integrate Nano Defender with uBlock Origin to block Anti-Adblocker

A fairly common reaction to counter the rising use of adblockers is to implement anti-adblocking scripts to get Internet users to disable the content blocker on websites that rely on advertising revenue.

Depending on how these scripts work, they may just display warnings when users visit the site with enabled adblockers or require that users deactivate the adblocker or whitelist the site to continue.

It is a race between creators of adblockers and anti-adblockers that does not address the bigger underlying picture in regards to advertisement on the Internet.

One option that uBlock Origin users have is to use Nano Defender's anti-adblocking capabilities. Nano Defender is an anti-adblock defuser by the creator of Nano Adblocker.

The process is a bit complicated for uBlock Origin, but it works without having to install Nano Adblocker in the browser of choice.

Integration in uBlock Origin

ublock origin anti-adblocking

You find the instructions on GitHub, but here is everything explained in detail:

  1. Install Nano Defender in Chrome or Firefox.
  2. Enable the Adblock Warning Removal List in uBlock Origin. It is a list that is already available in uBlock Origin but not enabled by default. Click here to do so.
  3. Subscribe to the Nano Defender Integration filter list. The list is not already available, but you can subscribe to it with a click as well.
  4. The next step requires that you make a configuration change in uBlock Origin's configuration. You need to add a custom resource list in the advanced settings.
    1. Open the Settings of uBlock Origin.
    2. Check the "I am an advanced user".
    3. Click on the settings icon next to it that appears when you activate the option.
    4. Locate the variable userResourcesLocation and replace the initial value "unset" with https://gitcdn.xyz/repo/NanoAdblocker/NanoFilters/master/NanoFilters/NanoResources.txt
    5. Click on "apply changes"
    6. Close the tab.
  5. Subscribe to the Nano Filters list with a click on this link.
  6. Subscribe to the Nano Filters Whitelist list with a click on this link.

Usage

Most anti-adblocking scripts should be blocked automatically once you have changed the configuration of uBlock Origin and integrated the custom filter lists in the extension.

A quick test on several sites that use anti-adblocking functionality confirmed that this worked just fine at that point in time. The sites would load without the adblocking notification that they display normally when using adblocking extensions.

The lists get updated automatically and everything should work without you having to do anything form that point onward.

It is possible that you may run into connection issues with some sites that use anti-adblockers. It is still possible then to disable uBlock Origin, or, report the issue to have it addressed by the extension developer.

Now You: What is your take on sites using anti-adblockers that notify or block users with adblockers?

Summary
Integrate Nano Defender with uBlock Origin to block Anti-Adblocker
Article Name
Integrate Nano Defender with uBlock Origin to block Anti-Adblocker
Description
Find out how to add anti-adblocking capabilities to uBlock Origin to block anti-adblockers automatically on sites that use these scripts and technologies.
Author
Publisher
Ghacks Technology News
Logo
Advertisement

We need your help

Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.

If you like our content, and would like to help, please consider making a contribution:


Previous Post: «
Next Post: »

Comments

  1. Bren said on February 15, 2019 at 3:17 pm
    Reply

    Just checking, is step 4 incorrect in this?

    On the github page it states to replace “unset” with “https://gitcdn.xyz/repo/NanoAdblocker/NanoFilters/master/NanoFilters/NanoResources.txt”

    1. Martin Brinkmann said on February 15, 2019 at 3:27 pm
      Reply

      You are right, thanks!

    2. Shiva said on February 15, 2019 at 3:46 pm
      Reply

      I have “https://cdn.rawgit.com/NanoAdblocker/NanoFilters/master/NanoFilters/NanoResources.txt”
      Is it old?

    3. Mozilla said on February 15, 2019 at 4:39 pm
      Reply

      No, that is correct. You need to add that line for uBlock Origin to register NanoAB filters.

  2. RogerW said on February 15, 2019 at 3:29 pm
    Reply

    4. Locate the variable userResourcesLocation and replace the initial value “unset” with
    userResourcesLocation.

    The new value should be “userResourcesLocation” correct?

    Also, the ‘Adblock Warning Removal List’ one click link does not work for some reason. The popup dialogue appears but nothing gets added to the Custom filter list. The rest are working fine.

    Thanks for this great article, was desperately looking for a way to deal with those annoying “Diable Ad-Blocker to continue” prompts.

    1. Martin Brinkmann said on February 15, 2019 at 6:41 pm
      Reply

      No it is a different value, you may see the old because of caching. It is this: https://gitcdn.xyz/repo/NanoAdblocker/NanoFilters/master/NanoFilters/NanoResources.txt

    2. RogerW said on February 15, 2019 at 9:36 pm
      Reply

      EDIT: The one click link works fine now.

  3. jupe said on February 15, 2019 at 3:33 pm
    Reply

    Ummm, I think step 4 is wrong the way you have written it.

  4. pat said on February 15, 2019 at 4:42 pm
    Reply

    For firefox, we have now nano adblocker & nano defender available xpi:
    https://github.com/LiCybora/NanoCoreFirefox/releases
    https://github.com/LiCybora/NanoDefenderFirefox/releases
    If I want to use nano defender, i’ll install nano adblocker instead of uBO.
    (easy)

  5. Anonymous said on February 15, 2019 at 5:20 pm
    Reply

    Step 3.4 is missing some critical information that is present in the GitHub page.

    1. Quantum777 said on February 17, 2019 at 12:06 pm
      Reply

      What? …The only difference I can see is: Go to uBlock Origin dashboard to select Settings

  6. Robert said on February 15, 2019 at 5:29 pm
    Reply

    Nice. There is a website where I always have to disable JavaScript in order to read it. I tried these nano filters and they work great.

  7. beerbt4 said on February 15, 2019 at 5:44 pm
    Reply
  8. Anonymous said on February 15, 2019 at 5:49 pm
    Reply

    No thanks, uBO can take care of anti-adblocking scripts just fine. Report all anti adblock issues here — https://github.com/uBlockOrigin/uAssets/issues

    Ironic and laughable that it’s coming from you who hosted anti adblock before on ghacks — https://github.com/uBlockOrigin/uAssets/issues/574

  9. Tom Hawack said on February 15, 2019 at 6:06 pm
    Reply

    Step 3.4 :
    Locate the variable userResourcesLocation and replace the initial value “unset” with https://gitcdn.xyz/repo/NanoAdblocker/NanoFilters/master/NanoFilters/NanoResources.txt

    OK, corrected already.

    Great article. Of course I’ve subscribed to Nano integration/Anti-Adblock filters, even if I seldom encounter messages asking or requiring to disable the adblocker, but I don’t visit many different sites.

    Some anti-adblock filters were already active :

    Nano Defender Integration​​​​​ : 2,652 used out of 2,671​​
    ​​Nano Filters​​ : ​​​91 used out of 181​​
    ​​Nano Filters – Whitelist​​ : ​​​0 used out of 1​​​

    What is my take on sites using anti-adblockers that notify or block users with adblockers?

    1- I don’t feel ‘revolted’ that sites notify the user of his adblocker.
    2- I feel irritated that a site blocks users who don’t disable their adblocker for them.
    3- I never make exceptions for sites, for the simple reason that doing so wouldn’t change much or even anything given that the big advertizers are blocked here system-wide via Hosts entries managed by the ‘Acrylic DNS proxy’ application as well as with the ‘Peerblock’ application, the latter decried by some and yet efficient, especially with the subsciption lists ($10/year).

    As Martin states it in the article,

    “It is a race between creators of adblockers and anti-adblockers that does not address the bigger underlying picture in regards to advertisement on the Internet.”

    And the race goes on.

    1. Anonymous said on May 22, 2019 at 1:13 pm
      Reply

      mm I think Nano Defender does a great job, uBlock Origin by itself can’t stop all anti-ad blocking scripts :).

  10. nannyblocker said on February 15, 2019 at 6:16 pm
    Reply

    Clearly ubo works great when you add nano blocker, nana blocker, nanny blocker and granny blocker. I mean my PC crashed but stricly no ads now.

    1. Pierre said on February 16, 2019 at 8:01 am
      Reply

      lol

    2. Anonymous said on May 22, 2019 at 1:22 pm
      Reply

      Hahahahaha, that was funny… God job! :).

  11. ilev said on February 15, 2019 at 6:38 pm
    Reply

    Thanks Martin.

    Added to uBlock Origin.

  12. Thorky said on February 15, 2019 at 7:11 pm
    Reply

    Great! I can watch bild.de again, although I never want to. 😂😉

    1. Tom Hawack said on February 15, 2019 at 8:56 pm
      Reply

      @Thorky, your comment got me to test bild.de and despite NanoDefender’s integration to uBO …

      “Warum sehe ich BILD.de nicht?
      Ein Plugin in Ihrem Browser beschädigt die Funktion der Webseite, deshalb können wir Ihnen keinen Zugriff auf die Inhalte gewähren.
      Möglicherweise nutzen Sie Ublock Origin oder ein anderes Adblocker Plugin. Falls dies der Fall ist, versuchen Sie bitte es zu deaktivieren.”

      Warum, sag, warum?! But I think bild.de is one of those tough sites…

      1. Tom Hawack said on February 15, 2019 at 9:05 pm
        Reply

        EDIT … sorry, my mistake (“he goofed again…”) : I use uBO with disabling by default 3rd-party and 3rd-party scripts, so granting bildstatic.de on bild.de (noop) allowed uBO and its rules to apply.

        To be noted concerning uBO : some filters apply only when specific 3rd-party sites are called, as for bild.de above.

      2. EnDru said on March 17, 2019 at 9:01 pm
        Reply

        Ich habe auch bild.de als Test-Seite verwendet und bei mir klappt das freischalten nicht.
        was mache ich falsch?hat jemand ein tip für mich?

  13. Peterc said on February 15, 2019 at 7:33 pm
    Reply

    I’m going to give it a try. I disable adblocking for sites I want to support, but if a site prevents me from finding out whether it’s worth supporting in the first place, this might come in handy. And, as Martin pointed out, if something goes haywire, you can always just disable uBlock Origin for the page or site … which is what you would have had to do anyway. I consider this a worthwhile tip.

  14. Richard Steven Hack said on February 15, 2019 at 8:59 pm
    Reply

    I can’t run uBlock Origin. Every time I try to save a Web page, the page fails to save. Clicking retry makes it complete. I traced this to uBlock. So now I don’t run any ad-blocker because I save a lot of Web pages and it’s just too much work to keep saving and resaving due to some adblocker’s incompetence.

    I find that NoScript enables me to kill most ad servers and I have a specific Youtube adblocker to block Youtube video ads. I can live with the remaining ads that fill in the sides of Web pages.

    1. bradam said on February 18, 2019 at 2:46 pm
      Reply

      Have you tried SingleFile? It works great for me. https://github.com/gildas-lormeau/SingleFile

    2. Anonymous said on May 22, 2019 at 1:34 pm
      Reply

      @Richard Steven Hack I don’t recommend browsing the Internet (or surfing) without ad-blocking software. uBlock Origin works seamlessly for me, even when saving changes, so please report those issues to the uBlock Origin developer to get them addressed properly. Thanks.

  15. spook said on February 15, 2019 at 9:38 pm
    Reply

    Owe you a beer, tanks.

  16. Rick said on February 16, 2019 at 12:50 am
    Reply

    It may be obvious, but some jumping right to those instructions near the bottom of the (linked) page may overlook the need to actually install Nano Defender, which is mentioned at the top.

    1. Peterc said on February 16, 2019 at 4:31 am
      Reply

      Thanks, Rick. It wasn’t clear to me from the present article that installing Nano Defender was required. To my knowledge, Nano Defender is not available for Pale Moon or Basilisk. I don’t know whether the WebExtension port for Firefox Quantum works in Waterfox.

    2. Chris said on February 16, 2019 at 8:28 am
      Reply

      I think you may have it backwards. I don’t think you need to install Nano anything if you choose to follow the instructions in this article.

      1. Rick said on February 16, 2019 at 7:13 pm
        Reply

        It’s possible, but if you read the Github page from the top, it’s hard to escape what I quote below. “Extra” steps for uBO means that the steps you’re referring to are not the sum total of what you have to do, they’re additional. And the only thing they could be additional to is the installation of Nano Defender.

        “Nano Defender can only protect either Nano Adblocker or uBlock Origin, and will prioritize Nano Adblocker.

        Get Nano Defender for Chrome or Chromium

        ****If you are using uBlock Origin, there are a few extra installation steps to follow.****”

      2. Chris said on February 17, 2019 at 6:26 pm
        Reply

        I stand corrected. Martin updated the article to reflect what you wrote. Thanks.

  17. Jeff said on February 16, 2019 at 6:19 am
    Reply

    So awesome. Thank you Martin.

  18. Pierre said on February 16, 2019 at 8:03 am
    Reply

    It does change anything. Try here :
    https://www.forum-des-portables-asus.fr/forums/

    1. Tom Hawack said on February 16, 2019 at 10:36 am
      Reply

      @Pierre, whatever the filters there will always be exceptions.

      For your link you can add this to uBO / My filters :
      http://www.forum-des-portables-asus.fr##.js-notices.notices–isMulti.notices–floating.notices

      1. Tom Hawack said on February 16, 2019 at 10:37 am
        Reply

        Without the leading http://

      2. Pierre said on February 16, 2019 at 5:58 pm
        Reply

        Yes, it works, thks !

  19. Anonymous said on February 16, 2019 at 9:07 am
    Reply

    On Chrome/Chromium, Nano Adblocker + Nano Defender is considerably better than uBO (or uBO + Defender). It is a uBO fork of course, but the improvements and added features really stand out. I hardly ever have to unbreak sites while uBO has me adjusting it constantly.

    On Firefox, it’s less convienient to install having to get it from GitHub, but once you install the pair they do update like normal addons so it’s worth the trouble. Especially as Nano does the job with almost no impact on page load speed and the reliability is rock solid. I’ve yet to actually visit a site where the blocking has been detected.

    1. John G. said on February 16, 2019 at 12:06 pm
      Reply

      I agree. @Martin, by the way latest W10 updates destroyed all my file associations, so bad. :(

    2. Jonh G. said on February 16, 2019 at 5:03 pm
      Reply

      And it is also faster than UblockOrigin in Chrome 72, including while loaded with all the filters selected at once. I always needed to disable some filters of UblockOrigin to gain some loading speed in a lot of very complex pages. However now Nano Adblocker is able to perform really nice its duty with all the filters on. A really good UblockOrigin fork so far so good imho.

  20. gwacks said on February 16, 2019 at 2:11 pm
    Reply

    I use uBO’s official resource list :
    https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/resources.txt

    I used to know Nano’s developer (jspenguin?) was a bit of *hostile* to FF (and ditched the FF version of his addons and focusing on Chrome), so I’ll stick to uBO. But it’s more suitable to choose Nano Adblocker if you want to deploy Nano Defender.

    As for the new *official* port of Nano Defender for FF, which is still in experimental status. And its privacy policy reads:
    https://addons.mozilla.org/en-US/firefox/addon/nano-defender-firefox/privacy/

    No thanks.

    1. nealis said on February 17, 2019 at 4:21 am
      Reply

      “The Tool will only collect your data when you use it, and will not connect to remote servers before the “Send” button is clicked.”

      The whole thing is to diagnose a problem. If you don’t use issue reporter tool, then they won’t collect data.

  21. Phylis Sophical said on February 16, 2019 at 5:15 pm
    Reply

    Here’s how I deal with Adblockers on FireFox.
    Open two tabs.
    1st tab: Open blocked site > turn off uBlock Origin to enter site, once in,
    2nd tab: Use it to go to Add-ons, then turn UBlock back on.
    Go back to tab #1 and enjoy the content.

  22. Karbi said on February 16, 2019 at 5:41 pm
    Reply

    This is not working on inoreader.com

    1. Tom Hawack said on February 16, 2019 at 6:21 pm
      Reply

      @Karbi, I don’t encounter any anti-adblocker on your site’s homepage.

      1. Michael said on April 28, 2019 at 11:37 pm
        Reply

        You have to be on the reader page. The homepage doesn’t have anything on it.

        https://www.inoreader.com/all_articles

  23. Alex said on February 16, 2019 at 6:15 pm
    Reply

    Thanks for the nice, easy-to-follow guide. Are there any potential risks/problems when using this method?

    1. Tom Hawack said on February 16, 2019 at 6:32 pm
      Reply

      The only specificity of this set of 3 Nano Defender filter lists compared to what we know of adding our own (uBO / Dashboard / Filter Lists / Custom – Import…) is what is described in the article’s step 3.4 : “Locate the variable userResourcesLocation and replace the initial value [..]”

      uBO provides detailed information about this userResourcesLocation setting:
      https://github.com/gorhill/uBlock/wiki/Advanced-settings#userresourceslocation

      Too technical for me, but your comment triggered my unsatisfied curiosity for this particular setting.
      If anyone has the means to explain in simple words uBO’s article on this ‘userResourcesLocation’ setting he/she will be thanked proportionally to the explanation’s quality. LOL!

  24. Anonymous said on February 16, 2019 at 6:52 pm
    Reply

    From what I can tell gorhill seems to despise Nano and its creator in general for essentially taking like 90% of his code to make “his own” adblocker, and then promoting it on uBO forums as being superior.

  25. Peterc said on February 16, 2019 at 7:24 pm
    Reply

    Is it necessary to install Nano Defender or is it not? (I’m not talking about Nano Adblocker; I’m talking about Nano Defender. The GitHub page seems to suggest that it is. This article seems to suggest that it isn’t.

    1. Martin Brinkmann said on February 17, 2019 at 7:56 am
      Reply

      Peter, yes it is. The review did not make it clear, I have added the step to make it clearer.

      1. Peterc said on February 17, 2019 at 8:38 am
        Reply

        @Martin: Thanks; I appreciate the clarification. As a Luddite who still uses Pale Moon as his primary browser, I guess I’m I’m left out in the cold. Ah, well — maybe I’ll add it to Google Chrome, which I’m forced to use from time to time.

        (Also, sorry for the missing closing parenthesis. My aging keyboard *does* sometimes miss keystrokes, but I’m pretty sure that one was on aging *me*.)

  26. TelV said on February 17, 2019 at 3:23 pm
    Reply

    Pity it doesn’t work with ABP which is much simpler to use than uBlock Origin the latter of which is way too complicated for my decrepit grey matter.

  27. Gerard said on February 18, 2019 at 12:44 pm
    Reply

    This is not going to work with Pale Moon, as it is necessary to install Nano Defender.

  28. Undertaker said on February 18, 2019 at 7:32 pm
    Reply

    My take is to close the tab and keep browsing away.

  29. badbanana said on February 19, 2019 at 12:56 pm
    Reply

    i have uBO but no Nano filters like in the picture above.

  30. breitag said on February 21, 2019 at 12:31 pm
    Reply

    there is an issue with Opera developer 59 no sound on you tube

  31. badbanana said on March 25, 2019 at 7:37 am
    Reply

    “..it works without having to install Nano Adblocker in the browser of choice.”

    then step 1 says to install Nano

  32. badmexican said on April 28, 2019 at 2:30 pm
    Reply

    When I try to subscribe to lists on firefox I get “The address wasn’t understood” error

  33. Deo et Patriae said on May 28, 2019 at 6:33 pm
    Reply

    What I noticed, sites that uses to use anti-adblockers step by step stop doing that. They understood people simply leaving the page and we get kind of different notice. A notice to appeal to our good will. Φuck ’em Ι’d say.

  34. Anonymous said on June 5, 2019 at 10:56 pm
    Reply

    works like a charm, thanks for these easy steps (really like your just clic here steps ;))

  35. Gary Thurman said on July 19, 2019 at 8:26 am
    Reply

    Thanks for the clearly written tutorial, Martin Brinkmann.

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

Please note that your comment may not appear immediately after you post it.