Questions tagged [adblock]

AdBlockers are the range of tools aimed to remove advertisements from web-pages.

Tools to block advertisements include:

  • Native in-browser tools (Opera's content blocker, IE9's tracking protection)
  • Browser add-ons (AdBlock Plus)
  • Greasemonkey scripts
  • External applications (AdMuncher)
  • System level IP/Domain filtration (via firewall, or editing Hosts file)

Adblockers have significant impact on website monetisation, and thus - are frequently tried to be circumvented by certain website authors / owners.

420 questions
438
votes
47 answers

How to detect Adblock on my website?

I would like to be able to detect if the user is using adblocking software when they visit my website. If they are using it, I want to display a message asking them to turn it off in order to support the project, like this website does. If you enter…
Jmlevick
  • 6,504
  • 9
  • 29
  • 35
125
votes
5 answers

inject.preload.js failing to load a file in chrome from my dev environment

I use google chrome for my php/js development. today I started to see a file that is failing to load. file name is always different Request URL: blob:http://random.homestead.test/4d9f984b-b8f8-4e77-97cb-4fcfd8ace348 network page says that…
Yevgeniy Afanasyev
  • 37,872
  • 26
  • 173
  • 191
60
votes
15 answers

How to prevent ad blocker from blocking ads on an app

One of my users let the cat out of the bag and told me they were using one of my free apps, which is monetized by ads, but they were blocking the ads with an ad blocker. They told me this mockingly, as if I can't do anything about it. Can I do…
Christopher Perry
  • 38,891
  • 43
  • 145
  • 187
48
votes
15 answers

Ad Blocker detection AKA Adblock Plus

After searching Google and Stackoverflow for a few hours I could not find a solution. What I'm trying to do is detect Adblock plus and display a simple message for now. What I want to do is detect Adblock plus without using a JavaScript file or…
chillers
  • 1,447
  • 2
  • 15
  • 25
37
votes
4 answers

How to stop adblock plus blocking images in HTML page

I am building a simple HTML page with some images, my FireFox has Adblock Plus—recently installed— and it blocks these images. I look at other similar pages on the net and they are not blocking images so why is it blocking mine? I do not want…
Andrew
  • 1,728
  • 8
  • 28
  • 39
20
votes
4 answers

Adblock. Add css class or remove attribute from element

Is it possible to add css rule to an element at some page by adblock? Something like this #myElement { color: white !important; } I tried to find a script that updates style of this element on page load but it seems that it is not a best way. …
Vitalii
  • 10,091
  • 18
  • 83
  • 151
17
votes
4 answers

Active Adblock Plus shows weird error in Chrome JS Console

Every page I browse with Chrome shows this error in the console: extensions::uncaught_exception_handler:8 Error in event handler for (unknown): SyntaxError: Failed to execute 'insertRule' on 'CSSStyleSheet': Failed to parse the rule '::content…
user3423688
  • 171
  • 1
  • 1
  • 5
16
votes
2 answers

AdBlock plus hids elements with ids or class with the word "ad"

I have two divs in my site one with id ad_holder and another with id ad_buttons" When testing the site on Mozilla with ad block plus installed I noticed that both divs were hidden. On further inspection I noticed it that Adblock was the culprit…
TDsouza
  • 910
  • 2
  • 13
  • 38
16
votes
10 answers

Detecting AdBlocking software?

I was recently visiting a site and noticed that the page had a section that said it noticed that I was using AdBlocking software and could I kindly turn it off to help support a small site like that. I was just wondering how you would do that? …
James P. Wright
  • 8,991
  • 23
  • 79
  • 142
15
votes
9 answers

Display Alternative Content for Users with AdBlockers

I'm working on an ad funded project. Really something subtle and content aware, not lame popups for genital enlargement etc. Since the project is ad funded, people with Ad Blockers will not benefit the project, (since they obviously don't know the…
Madara's Ghost
  • 172,118
  • 50
  • 264
  • 308
15
votes
12 answers

How would you go about designing an 'ad-blocker' for streaming radio?

I can't stand listening to conventional radio because I can't stand listening to ads. (The same goes for TV, where commercials are 200% louder than what you are trying to watch.) Unfortunately, my wife needs to listen to the radio while getting…
carrier
  • 32,209
  • 23
  • 76
  • 99
14
votes
1 answer

How to deal with AdBlock blocking non-ad elements

I recently had an issue whereby a user was complaining that they couldn't access a certain page because the link wasn't where it was supposed to be. After some head-scratching, I had them disable all browser extensions and sure enough the problem…
Niet the Dark Absol
  • 320,036
  • 81
  • 464
  • 592
13
votes
3 answers

How can I use a wildcard in uBlock Origin?

How can I use a wildcard in uBlock Origin? I've tried to figure out how to do it, but I'm a little bit confused. I just want to simplify all of these rules into one rule: www.dailymail.co.uk###js-article-text > div:nth-of-type(2) >…
grgoelyk
  • 397
  • 1
  • 3
  • 12
12
votes
3 answers

How does Adblock Plus really work in Chrome?

I noticed Adblock Plus injecting some CSS that hides the advertisements, but I think that it does more than that - for example blocking HTTP requests. How does Adblock Plus block advertisements on the web?
Yosi
  • 2,936
  • 7
  • 39
  • 64
12
votes
3 answers

Python Using Adblock with Selenium and Firefox Webdriver

My goal is to use Adblock Plus with Selenium via Python. I have been able to get it to the point where it will load the extension, but by default it does not include the default filter "EasyList." Here is what I have so far: from selenium import…
davelupt
  • 1,845
  • 4
  • 21
  • 32
1
2 3
27 28