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.
You find the instructions on GitHub, but here is everything explained in detail:
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?
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:
Please click on the following link to open the newsletter signup page: Ghacks Newsletter Sign up
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.
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”
You are right, thanks!
I have “https://cdn.rawgit.com/NanoAdblocker/NanoFilters/master/NanoFilters/NanoResources.txt”
Is it old?
No, that is correct. You need to add that line for uBlock Origin to register NanoAB filters.
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.
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
EDIT: The one click link works fine now.
Ummm, I think step 4 is wrong the way you have written it.
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)
Step 3.4 is missing some critical information that is present in the GitHub page.
What? …The only difference I can see is: Go to uBlock Origin dashboard to select Settings
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.
https://www.youtube.com/watch?v=PUKjO7lzezc
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
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.
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.
lol
Thanks Martin.
Added to uBlock Origin.
Great! I can watch bild.de again, although I never want to. 😂😉
@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…
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.
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?
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.
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.
Have you tried SingleFile? It works great for me. https://github.com/gildas-lormeau/SingleFile
Owe you a beer, tanks.
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.
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.
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.
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.****”
I stand corrected. Martin updated the article to reflect what you wrote. Thanks.
So awesome. Thank you Martin.
It does change anything. Try here :
https://www.forum-des-portables-asus.fr/forums/
@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
Without the leading http://
Yes, it works, thks !
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.
I agree. @Martin, by the way latest W10 updates destroyed all my file associations, so bad. :(
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.
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.
“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.
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.
This is not working on inoreader.com
@Karbi, I don’t encounter any anti-adblocker on your site’s homepage.
Thanks for the nice, easy-to-follow guide. Are there any potential risks/problems when using this method?
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!
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.
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.
Peter, yes it is. The review did not make it clear, I have added the step to make it clearer.
@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*.)
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.
This is not going to work with Pale Moon, as it is necessary to install Nano Defender.
My take is to close the tab and keep browsing away.
i have uBO but no Nano filters like in the picture above.
there is an issue with Opera developer 59 no sound on you tube
“..it works without having to install Nano Adblocker in the browser of choice.”
then step 1 says to install Nano