SlideShare a Scribd company logo
1 of 34
Download to read offline
WTF AdBlockers
How do they work?
Matt O’Neill
hello.
what is ad blocking?
– Lennox1339, reddit/r/ShowerThoughts
“Browsing without an ad blocker is like [making love] without
a condom. Only do it with someone you trust.”
“My right to protect myself from
malvertising, spyware, and totally irrelevant
advertising.”
“A way to speed up my web browsing.”
“It saves me a huge amount of money on
my mobile data plan.”
“I don’t want to be tracked by marketers.
It’s creepy.”
“Outright theft of my content”
“A reflection of how consumers feel about
online advertising”
“It’s only really used by young, male
techies.”
“It’s the same as pirating movies”
The hiding or request denial of content not directly related to
core content of a page or app. This includes display & video
advertising, text links, content recommendation and
marketing, native advertising and other paid and unpaid
placements.
ad blocking: a brief history
0
75
150
225
300
2000 2002 2004 2006 2008 2010 2012 2014 2016
2002
AdBlock launched
Blocks based on
source of creative
2006
ADB+ released as
standalone
extension
Site level blocking
enabled
2010
AdBlock+ released
as Chrome
Extension
2013
Support added for
IE
Removed from
Google Play but
available on the
ADB+ site
2014
AdBlock Plus
released for OS X
Safari
2015
Blocker browsers
Apple Support for
ad blocking
Blocker blockers
emerge
Network / carrier
level blocking
AdBlock+ launched
‘acceptable ads’ as
an industry initiative
History of Ad Blocking
2004
Content policies
leveraged as
blocking
mechanism
Scripts,
background
images, stylesheets
added to lockable
item list
2005
Whitelisting
introduced
localised versions
launched
list & filter synching
how does it work?
Some Ad Blocking Terms
Browser Extension: A small program that is linked to a web browser like Chrome or Firefox.
Content Policies / Filtering: The use of a program to screen and exclude from access or availability Web pages or
electronic content that is deemed objectionable.
DOM (Document Object Model): An API to an underlying HTML or XML document represented typically by a hierarchy
of objects within the document.

DPI (Deep Packet Inspection): A kind of filtering that examines the data part and header of a chunk of information as it
passes a point in a network. It searches for protocol non-compliance, viruses, spam, intrusions, and other flagged
information.

Gecko: A web browser designed to support open Internet standards and is used by different applications to display web
pages and, in some cases, an application's user interface itself. It is free and open-source software.

Lists (e.g. EasyList): a collection of domains, sub-domains, and other references to technology that delivers advertising
to browsers

RegEx (Regular Expression): A way to search for parts of a string of text. Similar to using an * when looking for a
filename.
Element Hiding + Request Blocking
Element hiding: A CSS snippet is injected into the DOM via the
browser extension to hide elements. Ads are completely removed
from the rendered page. This doesn't prevent resources from loading
in the first place.

Request blocking: To keep the payload from loading in the first
place, HTTP requests for retrieving resources that are supposed to be
blocked are blocked entirely. This will make the page load faster by
reducing data throughput. Request blocking enables blocking
content that is loaded from within Flash or HTML5 including video
pre-roll.
http://stackoverflow.com/users/406565/sebastian-noack
The steps to blocking
User requests a web page with ad blocking enabled

Ad blocker is an extension to the browser

Ad blocker references a list of know ad servers and content delivery
networks (CDNs)

The ad blocker inspects the DOM for scripts and CSS known to be affiliated
with advertising

The ad blocker cleans up the holes (sometimes) in the page to tidy to up

The page renders on the user’s browser
Domain Filtering
Other Blocking Methods
“Ad blockers - a white paper”, Secret Media - 2014
What the browser sees
With ad blocking
Let’s make an ad blocker!
#!/usr/bin/perl -w
use strict;
my %hosts = ();
while ( <> ) {
if ( $_ =~ m/^||([a-z][a-z0-9-_.]+.([a-z]{2,3}))^s*$/ ) {
$hosts{$1} = 1;
}
}
foreach my $host ( sort keys %hosts ) {
print( "127.0.0.1t$hostn" );
}
moneill$ perl filter-easylist-to-hosts.pl easylist.txt
>easylist.hosts
moneill$ cp /etc/hosts etc/hosts.bak
moneill$ cp easylist.hosts /etc/hosts
moneill$ wget https://easylist-downloads.adblockplus.org/
easylist.txt
--2016-03-08 14:31:34-- https://easylist-downloads.adblockplus.org/
easylist.txt
Resolving easylist-downloads.adblockplus.org... 136.243.62.212,
148.251.139.76, 2a01:4f8:212:1626::2, ...
Connecting to easylist-downloads.adblockplus.org|136.243.62.212|:
443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1756007 (1.7M) [text/plain]
Saving to: 'easylist.txt'
easylist.txt 100%[===================>] 1.67M 368KB/s
in 4.4s
https://newspaint.wordpress.com/2014/08/18/filtering-easylist-for-hosts-file-style-adblock/
recent developments
improved mobile blocking
adblock + ad block plus
acceptable ads
rise of blocker blockers
shine & carrier level blocking
ad blocking: weaknesses
annoying the privacy gods
adoption of encrypted web
calls / https
Mobile is a challenge,
especially in app
native and facebook
takeways
it’s not hard to build
it’s largely open source and
globally crowd sourced
it requires access to something
in the document to work
ultimately it can be defeated
by publishers and ad tech
But at what cost…
thank you
Matt O’Neill

moneill@teemo-ltd.co.uk

More Related Content

What's hot

Don’t forget to add doctype
Don’t forget to add doctypeDon’t forget to add doctype
Don’t forget to add doctypeAnna Khabibullina
 
How to block Website in Different Search Engines
How to block Website in Different Search EnginesHow to block Website in Different Search Engines
How to block Website in Different Search EnginesLaxman Kotte
 
Internet Slide Quiz 1
Internet Slide Quiz 1Internet Slide Quiz 1
Internet Slide Quiz 1zothnerk
 
Cross-Site Scripting (XSS)
Cross-Site Scripting (XSS)Cross-Site Scripting (XSS)
Cross-Site Scripting (XSS)Daniel Tumser
 
Basic web architecture
Basic web architectureBasic web architecture
Basic web architectureRalu Mihordea
 
The Cross Site Scripting Guide
The Cross Site Scripting GuideThe Cross Site Scripting Guide
The Cross Site Scripting GuideDaisuke_Dan
 

What's hot (8)

Don’t forget to add doctype
Don’t forget to add doctypeDon’t forget to add doctype
Don’t forget to add doctype
 
How to block Website in Different Search Engines
How to block Website in Different Search EnginesHow to block Website in Different Search Engines
How to block Website in Different Search Engines
 
Internet Slide Quiz 1
Internet Slide Quiz 1Internet Slide Quiz 1
Internet Slide Quiz 1
 
Cross-Site Scripting (XSS)
Cross-Site Scripting (XSS)Cross-Site Scripting (XSS)
Cross-Site Scripting (XSS)
 
ADA Compliance
ADA ComplianceADA Compliance
ADA Compliance
 
Basic web architecture
Basic web architectureBasic web architecture
Basic web architecture
 
The Cross Site Scripting Guide
The Cross Site Scripting GuideThe Cross Site Scripting Guide
The Cross Site Scripting Guide
 
Million Browser Botnet
Million Browser BotnetMillion Browser Botnet
Million Browser Botnet
 

Similar to WTF AdBlockers: How do they work

Website hacking and prevention (All Tools,Topics & Technique )
Website hacking and prevention (All Tools,Topics & Technique )Website hacking and prevention (All Tools,Topics & Technique )
Website hacking and prevention (All Tools,Topics & Technique )Jay Nagar
 
E-commerce Lab work
E-commerce Lab workE-commerce Lab work
E-commerce Lab workPragya Bisht
 
New or obscure web browsers 4x3 (rcsi draft 6)
New or obscure web browsers 4x3 (rcsi draft 6)New or obscure web browsers 4x3 (rcsi draft 6)
New or obscure web browsers 4x3 (rcsi draft 6)msz
 
Graphical User Interface Testing
Graphical User Interface TestingGraphical User Interface Testing
Graphical User Interface Testingtechgajanan
 
Information Gathering With Google
Information Gathering With GoogleInformation Gathering With Google
Information Gathering With GoogleZero Science Lab
 
Information Gathering with Google (c0c0n - India)
Information Gathering with Google (c0c0n - India)Information Gathering with Google (c0c0n - India)
Information Gathering with Google (c0c0n - India)Maximiliano Soler
 
A security note for web developers
A security note for web developersA security note for web developers
A security note for web developersJohn Ombagi
 
Accessibility Geek Up
Accessibility Geek UpAccessibility Geek Up
Accessibility Geek Upguest67b46c
 
Ntia 0900
Ntia 0900Ntia 0900
Ntia 0900gsgiles
 
Bruce Lawson Opera Indonesia
Bruce Lawson Opera IndonesiaBruce Lawson Opera Indonesia
Bruce Lawson Opera Indonesiabrucelawson
 
Web Browser Basics, Tips & Tricks Draft 17
Web Browser Basics, Tips & Tricks Draft 17Web Browser Basics, Tips & Tricks Draft 17
Web Browser Basics, Tips & Tricks Draft 17msz
 
Glossary of Digital Terms
Glossary of Digital TermsGlossary of Digital Terms
Glossary of Digital TermsLaura Kerrigan
 
Glossary of Digital Terms
Glossary of Digital TermsGlossary of Digital Terms
Glossary of Digital TermsLaura Kerrigan
 
New or obscure web browsers (4x3 draft 5)
New or obscure web browsers (4x3 draft 5)New or obscure web browsers (4x3 draft 5)
New or obscure web browsers (4x3 draft 5)msz
 
Making The Most of Mobile
Making The Most of MobileMaking The Most of Mobile
Making The Most of Mobileguestca744f
 
Module 12 (web application vulnerabilities)
Module 12 (web application vulnerabilities)Module 12 (web application vulnerabilities)
Module 12 (web application vulnerabilities)Wail Hassan
 
Mamba Media - Decoding Digital Language
Mamba Media - Decoding Digital LanguageMamba Media - Decoding Digital Language
Mamba Media - Decoding Digital LanguageMamba Media
 
MambaMedia-decoding-digital
MambaMedia-decoding-digitalMambaMedia-decoding-digital
MambaMedia-decoding-digitalRobin Cormack
 

Similar to WTF AdBlockers: How do they work (20)

Website hacking and prevention (All Tools,Topics & Technique )
Website hacking and prevention (All Tools,Topics & Technique )Website hacking and prevention (All Tools,Topics & Technique )
Website hacking and prevention (All Tools,Topics & Technique )
 
E-commerce Lab work
E-commerce Lab workE-commerce Lab work
E-commerce Lab work
 
New or obscure web browsers 4x3 (rcsi draft 6)
New or obscure web browsers 4x3 (rcsi draft 6)New or obscure web browsers 4x3 (rcsi draft 6)
New or obscure web browsers 4x3 (rcsi draft 6)
 
Graphical User Interface Testing
Graphical User Interface TestingGraphical User Interface Testing
Graphical User Interface Testing
 
Information Gathering With Google
Information Gathering With GoogleInformation Gathering With Google
Information Gathering With Google
 
Information Gathering with Google (c0c0n - India)
Information Gathering with Google (c0c0n - India)Information Gathering with Google (c0c0n - India)
Information Gathering with Google (c0c0n - India)
 
A security note for web developers
A security note for web developersA security note for web developers
A security note for web developers
 
Accessibility Geek Up
Accessibility Geek UpAccessibility Geek Up
Accessibility Geek Up
 
Ntia 0900
Ntia 0900Ntia 0900
Ntia 0900
 
Bruce Lawson Opera Indonesia
Bruce Lawson Opera IndonesiaBruce Lawson Opera Indonesia
Bruce Lawson Opera Indonesia
 
Web Browser Basics, Tips & Tricks Draft 17
Web Browser Basics, Tips & Tricks Draft 17Web Browser Basics, Tips & Tricks Draft 17
Web Browser Basics, Tips & Tricks Draft 17
 
Glossary of Digital Terms
Glossary of Digital TermsGlossary of Digital Terms
Glossary of Digital Terms
 
Glossary of Digital Terms
Glossary of Digital TermsGlossary of Digital Terms
Glossary of Digital Terms
 
White Hat Cloaking
White Hat CloakingWhite Hat Cloaking
White Hat Cloaking
 
New or obscure web browsers (4x3 draft 5)
New or obscure web browsers (4x3 draft 5)New or obscure web browsers (4x3 draft 5)
New or obscure web browsers (4x3 draft 5)
 
Making The Most of Mobile
Making The Most of MobileMaking The Most of Mobile
Making The Most of Mobile
 
Intro to bootcamp
Intro to bootcampIntro to bootcamp
Intro to bootcamp
 
Module 12 (web application vulnerabilities)
Module 12 (web application vulnerabilities)Module 12 (web application vulnerabilities)
Module 12 (web application vulnerabilities)
 
Mamba Media - Decoding Digital Language
Mamba Media - Decoding Digital LanguageMamba Media - Decoding Digital Language
Mamba Media - Decoding Digital Language
 
MambaMedia-decoding-digital
MambaMedia-decoding-digitalMambaMedia-decoding-digital
MambaMedia-decoding-digital
 

More from Digiday

Amazon Strategies January 2019 | Sellwin
Amazon Strategies January 2019 | SellwinAmazon Strategies January 2019 | Sellwin
Amazon Strategies January 2019 | SellwinDigiday
 
Amazon Strategies January 2019 | OneSpace
Amazon Strategies January 2019 | OneSpaceAmazon Strategies January 2019 | OneSpace
Amazon Strategies January 2019 | OneSpaceDigiday
 
Amazon Strategies January 2019 | Tatari
Amazon Strategies January 2019 | TatariAmazon Strategies January 2019 | Tatari
Amazon Strategies January 2019 | TatariDigiday
 
Amazon Strategies January 2019 | 23andme
Amazon Strategies January 2019 | 23andmeAmazon Strategies January 2019 | 23andme
Amazon Strategies January 2019 | 23andmeDigiday
 
Amazon Strategies January 2019 | Booyah
Amazon Strategies January 2019 | BooyahAmazon Strategies January 2019 | Booyah
Amazon Strategies January 2019 | BooyahDigiday
 
Amazon Strategies January 2019 | Publicis
Amazon Strategies January 2019 | PublicisAmazon Strategies January 2019 | Publicis
Amazon Strategies January 2019 | PublicisDigiday
 
Amazon Strategies January 2019 | Perpetua
Amazon Strategies January 2019 | PerpetuaAmazon Strategies January 2019 | Perpetua
Amazon Strategies January 2019 | PerpetuaDigiday
 
Amazon Strategies January 2019 | Podean
Amazon Strategies January 2019 | PodeanAmazon Strategies January 2019 | Podean
Amazon Strategies January 2019 | PodeanDigiday
 
Amazon Strategies January 2019 | eos
Amazon Strategies January 2019 | eosAmazon Strategies January 2019 | eos
Amazon Strategies January 2019 | eosDigiday
 
Amazon Strategies January 2019 | iCrossing
Amazon Strategies January 2019 | iCrossingAmazon Strategies January 2019 | iCrossing
Amazon Strategies January 2019 | iCrossingDigiday
 
Amazon Strategies January 2019 | Dash Hudson
Amazon Strategies January 2019 | Dash HudsonAmazon Strategies January 2019 | Dash Hudson
Amazon Strategies January 2019 | Dash HudsonDigiday
 
Amazon Strategies January 2019 | Direct Agents & Carhartt
Amazon Strategies January 2019 | Direct Agents & CarharttAmazon Strategies January 2019 | Direct Agents & Carhartt
Amazon Strategies January 2019 | Direct Agents & CarharttDigiday
 
Amazon Strategies January 2019 | WellPath
Amazon Strategies January 2019 | WellPathAmazon Strategies January 2019 | WellPath
Amazon Strategies January 2019 | WellPathDigiday
 
Amazon Strategies January 2019 | Tinuiti
Amazon Strategies January 2019 | TinuitiAmazon Strategies January 2019 | Tinuiti
Amazon Strategies January 2019 | TinuitiDigiday
 
Amazon Strategies January 2019 | Belkin
Amazon Strategies January 2019 | BelkinAmazon Strategies January 2019 | Belkin
Amazon Strategies January 2019 | BelkinDigiday
 
Amazon Strategies January 2019 | Stella Rising
Amazon Strategies January 2019 | Stella RisingAmazon Strategies January 2019 | Stella Rising
Amazon Strategies January 2019 | Stella RisingDigiday
 
Amazon Strategies January 2019 | Moroccanoil
Amazon Strategies January 2019 | MoroccanoilAmazon Strategies January 2019 | Moroccanoil
Amazon Strategies January 2019 | MoroccanoilDigiday
 
Digiday Brand Summit December 2019 | NASCAR
Digiday Brand Summit December 2019 | NASCARDigiday Brand Summit December 2019 | NASCAR
Digiday Brand Summit December 2019 | NASCARDigiday
 
Digiday Brand Summit December 2019 | Recess
Digiday Brand Summit December 2019 | RecessDigiday Brand Summit December 2019 | Recess
Digiday Brand Summit December 2019 | RecessDigiday
 
Digiday Brand Summit December 2019 | LipLove
Digiday Brand Summit December 2019 | LipLoveDigiday Brand Summit December 2019 | LipLove
Digiday Brand Summit December 2019 | LipLoveDigiday
 

More from Digiday (20)

Amazon Strategies January 2019 | Sellwin
Amazon Strategies January 2019 | SellwinAmazon Strategies January 2019 | Sellwin
Amazon Strategies January 2019 | Sellwin
 
Amazon Strategies January 2019 | OneSpace
Amazon Strategies January 2019 | OneSpaceAmazon Strategies January 2019 | OneSpace
Amazon Strategies January 2019 | OneSpace
 
Amazon Strategies January 2019 | Tatari
Amazon Strategies January 2019 | TatariAmazon Strategies January 2019 | Tatari
Amazon Strategies January 2019 | Tatari
 
Amazon Strategies January 2019 | 23andme
Amazon Strategies January 2019 | 23andmeAmazon Strategies January 2019 | 23andme
Amazon Strategies January 2019 | 23andme
 
Amazon Strategies January 2019 | Booyah
Amazon Strategies January 2019 | BooyahAmazon Strategies January 2019 | Booyah
Amazon Strategies January 2019 | Booyah
 
Amazon Strategies January 2019 | Publicis
Amazon Strategies January 2019 | PublicisAmazon Strategies January 2019 | Publicis
Amazon Strategies January 2019 | Publicis
 
Amazon Strategies January 2019 | Perpetua
Amazon Strategies January 2019 | PerpetuaAmazon Strategies January 2019 | Perpetua
Amazon Strategies January 2019 | Perpetua
 
Amazon Strategies January 2019 | Podean
Amazon Strategies January 2019 | PodeanAmazon Strategies January 2019 | Podean
Amazon Strategies January 2019 | Podean
 
Amazon Strategies January 2019 | eos
Amazon Strategies January 2019 | eosAmazon Strategies January 2019 | eos
Amazon Strategies January 2019 | eos
 
Amazon Strategies January 2019 | iCrossing
Amazon Strategies January 2019 | iCrossingAmazon Strategies January 2019 | iCrossing
Amazon Strategies January 2019 | iCrossing
 
Amazon Strategies January 2019 | Dash Hudson
Amazon Strategies January 2019 | Dash HudsonAmazon Strategies January 2019 | Dash Hudson
Amazon Strategies January 2019 | Dash Hudson
 
Amazon Strategies January 2019 | Direct Agents & Carhartt
Amazon Strategies January 2019 | Direct Agents & CarharttAmazon Strategies January 2019 | Direct Agents & Carhartt
Amazon Strategies January 2019 | Direct Agents & Carhartt
 
Amazon Strategies January 2019 | WellPath
Amazon Strategies January 2019 | WellPathAmazon Strategies January 2019 | WellPath
Amazon Strategies January 2019 | WellPath
 
Amazon Strategies January 2019 | Tinuiti
Amazon Strategies January 2019 | TinuitiAmazon Strategies January 2019 | Tinuiti
Amazon Strategies January 2019 | Tinuiti
 
Amazon Strategies January 2019 | Belkin
Amazon Strategies January 2019 | BelkinAmazon Strategies January 2019 | Belkin
Amazon Strategies January 2019 | Belkin
 
Amazon Strategies January 2019 | Stella Rising
Amazon Strategies January 2019 | Stella RisingAmazon Strategies January 2019 | Stella Rising
Amazon Strategies January 2019 | Stella Rising
 
Amazon Strategies January 2019 | Moroccanoil
Amazon Strategies January 2019 | MoroccanoilAmazon Strategies January 2019 | Moroccanoil
Amazon Strategies January 2019 | Moroccanoil
 
Digiday Brand Summit December 2019 | NASCAR
Digiday Brand Summit December 2019 | NASCARDigiday Brand Summit December 2019 | NASCAR
Digiday Brand Summit December 2019 | NASCAR
 
Digiday Brand Summit December 2019 | Recess
Digiday Brand Summit December 2019 | RecessDigiday Brand Summit December 2019 | Recess
Digiday Brand Summit December 2019 | Recess
 
Digiday Brand Summit December 2019 | LipLove
Digiday Brand Summit December 2019 | LipLoveDigiday Brand Summit December 2019 | LipLove
Digiday Brand Summit December 2019 | LipLove
 

Recently uploaded

Cash payment girl 9257726604 Hand ✋ to Hand over girl
Cash payment girl 9257726604 Hand ✋ to Hand over girlCash payment girl 9257726604 Hand ✋ to Hand over girl
Cash payment girl 9257726604 Hand ✋ to Hand over girlCall girl Jaipur
 
BLOOM_April2024. Balmer Lawrie Online Monthly Bulletin
BLOOM_April2024. Balmer Lawrie Online Monthly BulletinBLOOM_April2024. Balmer Lawrie Online Monthly Bulletin
BLOOM_April2024. Balmer Lawrie Online Monthly BulletinBalmerLawrie
 
What is Google Search Console and What is it provide?
What is Google Search Console and What is it provide?What is Google Search Console and What is it provide?
What is Google Search Console and What is it provide?riteshhsociall
 
How to Leverage Behavioral Science Insights for Direct Mail Success
How to Leverage Behavioral Science Insights for Direct Mail SuccessHow to Leverage Behavioral Science Insights for Direct Mail Success
How to Leverage Behavioral Science Insights for Direct Mail SuccessAggregage
 
Branding strategies of new company .pptx
Branding strategies of new company .pptxBranding strategies of new company .pptx
Branding strategies of new company .pptxVikasTiwari846641
 
Brand experience Dream Center Peoria Presentation.pdf
Brand experience Dream Center Peoria Presentation.pdfBrand experience Dream Center Peoria Presentation.pdf
Brand experience Dream Center Peoria Presentation.pdftbatkhuu1
 
Call Us ➥9654467111▻Call Girls In Delhi NCR
Call Us ➥9654467111▻Call Girls In Delhi NCRCall Us ➥9654467111▻Call Girls In Delhi NCR
Call Us ➥9654467111▻Call Girls In Delhi NCRSapana Sha
 
Uncover Insightful User Journey Secrets Using GA4 Reports
Uncover Insightful User Journey Secrets Using GA4 ReportsUncover Insightful User Journey Secrets Using GA4 Reports
Uncover Insightful User Journey Secrets Using GA4 ReportsVWO
 
Brand experience Peoria City Soccer Presentation.pdf
Brand experience Peoria City Soccer Presentation.pdfBrand experience Peoria City Soccer Presentation.pdf
Brand experience Peoria City Soccer Presentation.pdftbatkhuu1
 
Five Essential Tools for International SEO - Natalia Witczyk - SearchNorwich 15
Five Essential Tools for International SEO - Natalia Witczyk - SearchNorwich 15Five Essential Tools for International SEO - Natalia Witczyk - SearchNorwich 15
Five Essential Tools for International SEO - Natalia Witczyk - SearchNorwich 15SearchNorwich
 
The Science of Landing Page Messaging.pdf
The Science of Landing Page Messaging.pdfThe Science of Landing Page Messaging.pdf
The Science of Landing Page Messaging.pdfVWO
 
BDSM⚡Call Girls in Sector 144 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 144 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 144 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 144 Noida Escorts >༒8448380779 Escort ServiceDelhi Call girls
 
Enjoy Night⚡Call Girls Dlf City Phase 4 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 4 Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Dlf City Phase 4 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 4 Gurgaon >༒8448380779 Escort ServiceDelhi Call girls
 
Labour Day Celebrating Workers and Their Contributions.pptx
Labour Day Celebrating Workers and Their Contributions.pptxLabour Day Celebrating Workers and Their Contributions.pptx
Labour Day Celebrating Workers and Their Contributions.pptxelizabethella096
 
BDSM⚡Call Girls in Sector 128 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 128 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 128 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 128 Noida Escorts >༒8448380779 Escort ServiceDelhi Call girls
 
Defining Marketing for the 21st Century,kotler
Defining Marketing for the 21st Century,kotlerDefining Marketing for the 21st Century,kotler
Defining Marketing for the 21st Century,kotlerAmirNasiruog
 
Digital-Marketing-Into-by-Zoraiz-Ahmad.pptx
Digital-Marketing-Into-by-Zoraiz-Ahmad.pptxDigital-Marketing-Into-by-Zoraiz-Ahmad.pptx
Digital-Marketing-Into-by-Zoraiz-Ahmad.pptxZACGaming
 

Recently uploaded (20)

Cash payment girl 9257726604 Hand ✋ to Hand over girl
Cash payment girl 9257726604 Hand ✋ to Hand over girlCash payment girl 9257726604 Hand ✋ to Hand over girl
Cash payment girl 9257726604 Hand ✋ to Hand over girl
 
BLOOM_April2024. Balmer Lawrie Online Monthly Bulletin
BLOOM_April2024. Balmer Lawrie Online Monthly BulletinBLOOM_April2024. Balmer Lawrie Online Monthly Bulletin
BLOOM_April2024. Balmer Lawrie Online Monthly Bulletin
 
What is Google Search Console and What is it provide?
What is Google Search Console and What is it provide?What is Google Search Console and What is it provide?
What is Google Search Console and What is it provide?
 
How to Leverage Behavioral Science Insights for Direct Mail Success
How to Leverage Behavioral Science Insights for Direct Mail SuccessHow to Leverage Behavioral Science Insights for Direct Mail Success
How to Leverage Behavioral Science Insights for Direct Mail Success
 
No Cookies No Problem - Steve Krull, Be Found Online
No Cookies No Problem - Steve Krull, Be Found OnlineNo Cookies No Problem - Steve Krull, Be Found Online
No Cookies No Problem - Steve Krull, Be Found Online
 
Brand Strategy Master Class - Juntae DeLane
Brand Strategy Master Class - Juntae DeLaneBrand Strategy Master Class - Juntae DeLane
Brand Strategy Master Class - Juntae DeLane
 
Branding strategies of new company .pptx
Branding strategies of new company .pptxBranding strategies of new company .pptx
Branding strategies of new company .pptx
 
Brand experience Dream Center Peoria Presentation.pdf
Brand experience Dream Center Peoria Presentation.pdfBrand experience Dream Center Peoria Presentation.pdf
Brand experience Dream Center Peoria Presentation.pdf
 
Call Us ➥9654467111▻Call Girls In Delhi NCR
Call Us ➥9654467111▻Call Girls In Delhi NCRCall Us ➥9654467111▻Call Girls In Delhi NCR
Call Us ➥9654467111▻Call Girls In Delhi NCR
 
Uncover Insightful User Journey Secrets Using GA4 Reports
Uncover Insightful User Journey Secrets Using GA4 ReportsUncover Insightful User Journey Secrets Using GA4 Reports
Uncover Insightful User Journey Secrets Using GA4 Reports
 
Brand experience Peoria City Soccer Presentation.pdf
Brand experience Peoria City Soccer Presentation.pdfBrand experience Peoria City Soccer Presentation.pdf
Brand experience Peoria City Soccer Presentation.pdf
 
Five Essential Tools for International SEO - Natalia Witczyk - SearchNorwich 15
Five Essential Tools for International SEO - Natalia Witczyk - SearchNorwich 15Five Essential Tools for International SEO - Natalia Witczyk - SearchNorwich 15
Five Essential Tools for International SEO - Natalia Witczyk - SearchNorwich 15
 
The Science of Landing Page Messaging.pdf
The Science of Landing Page Messaging.pdfThe Science of Landing Page Messaging.pdf
The Science of Landing Page Messaging.pdf
 
BDSM⚡Call Girls in Sector 144 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 144 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 144 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 144 Noida Escorts >༒8448380779 Escort Service
 
Turn Digital Reputation Threats into Offense Tactics - Daniel Lemin
Turn Digital Reputation Threats into Offense Tactics - Daniel LeminTurn Digital Reputation Threats into Offense Tactics - Daniel Lemin
Turn Digital Reputation Threats into Offense Tactics - Daniel Lemin
 
Enjoy Night⚡Call Girls Dlf City Phase 4 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 4 Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Dlf City Phase 4 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 4 Gurgaon >༒8448380779 Escort Service
 
Labour Day Celebrating Workers and Their Contributions.pptx
Labour Day Celebrating Workers and Their Contributions.pptxLabour Day Celebrating Workers and Their Contributions.pptx
Labour Day Celebrating Workers and Their Contributions.pptx
 
BDSM⚡Call Girls in Sector 128 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 128 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 128 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 128 Noida Escorts >༒8448380779 Escort Service
 
Defining Marketing for the 21st Century,kotler
Defining Marketing for the 21st Century,kotlerDefining Marketing for the 21st Century,kotler
Defining Marketing for the 21st Century,kotler
 
Digital-Marketing-Into-by-Zoraiz-Ahmad.pptx
Digital-Marketing-Into-by-Zoraiz-Ahmad.pptxDigital-Marketing-Into-by-Zoraiz-Ahmad.pptx
Digital-Marketing-Into-by-Zoraiz-Ahmad.pptx
 

WTF AdBlockers: How do they work

  • 1. WTF AdBlockers How do they work? Matt O’Neill
  • 3. what is ad blocking?
  • 4. – Lennox1339, reddit/r/ShowerThoughts “Browsing without an ad blocker is like [making love] without a condom. Only do it with someone you trust.”
  • 5. “My right to protect myself from malvertising, spyware, and totally irrelevant advertising.” “A way to speed up my web browsing.” “It saves me a huge amount of money on my mobile data plan.” “I don’t want to be tracked by marketers. It’s creepy.”
  • 6. “Outright theft of my content” “A reflection of how consumers feel about online advertising” “It’s only really used by young, male techies.” “It’s the same as pirating movies”
  • 7. The hiding or request denial of content not directly related to core content of a page or app. This includes display & video advertising, text links, content recommendation and marketing, native advertising and other paid and unpaid placements.
  • 8. ad blocking: a brief history
  • 9. 0 75 150 225 300 2000 2002 2004 2006 2008 2010 2012 2014 2016 2002 AdBlock launched Blocks based on source of creative 2006 ADB+ released as standalone extension Site level blocking enabled 2010 AdBlock+ released as Chrome Extension 2013 Support added for IE Removed from Google Play but available on the ADB+ site 2014 AdBlock Plus released for OS X Safari 2015 Blocker browsers Apple Support for ad blocking Blocker blockers emerge Network / carrier level blocking AdBlock+ launched ‘acceptable ads’ as an industry initiative History of Ad Blocking 2004 Content policies leveraged as blocking mechanism Scripts, background images, stylesheets added to lockable item list 2005 Whitelisting introduced localised versions launched list & filter synching
  • 10. how does it work?
  • 11. Some Ad Blocking Terms Browser Extension: A small program that is linked to a web browser like Chrome or Firefox. Content Policies / Filtering: The use of a program to screen and exclude from access or availability Web pages or electronic content that is deemed objectionable. DOM (Document Object Model): An API to an underlying HTML or XML document represented typically by a hierarchy of objects within the document. DPI (Deep Packet Inspection): A kind of filtering that examines the data part and header of a chunk of information as it passes a point in a network. It searches for protocol non-compliance, viruses, spam, intrusions, and other flagged information. Gecko: A web browser designed to support open Internet standards and is used by different applications to display web pages and, in some cases, an application's user interface itself. It is free and open-source software. Lists (e.g. EasyList): a collection of domains, sub-domains, and other references to technology that delivers advertising to browsers RegEx (Regular Expression): A way to search for parts of a string of text. Similar to using an * when looking for a filename.
  • 12. Element Hiding + Request Blocking Element hiding: A CSS snippet is injected into the DOM via the browser extension to hide elements. Ads are completely removed from the rendered page. This doesn't prevent resources from loading in the first place. Request blocking: To keep the payload from loading in the first place, HTTP requests for retrieving resources that are supposed to be blocked are blocked entirely. This will make the page load faster by reducing data throughput. Request blocking enables blocking content that is loaded from within Flash or HTML5 including video pre-roll. http://stackoverflow.com/users/406565/sebastian-noack
  • 13. The steps to blocking User requests a web page with ad blocking enabled Ad blocker is an extension to the browser Ad blocker references a list of know ad servers and content delivery networks (CDNs) The ad blocker inspects the DOM for scripts and CSS known to be affiliated with advertising The ad blocker cleans up the holes (sometimes) in the page to tidy to up The page renders on the user’s browser
  • 15. Other Blocking Methods “Ad blockers - a white paper”, Secret Media - 2014
  • 18. Let’s make an ad blocker! #!/usr/bin/perl -w use strict; my %hosts = (); while ( <> ) { if ( $_ =~ m/^||([a-z][a-z0-9-_.]+.([a-z]{2,3}))^s*$/ ) { $hosts{$1} = 1; } } foreach my $host ( sort keys %hosts ) { print( "127.0.0.1t$hostn" ); } moneill$ perl filter-easylist-to-hosts.pl easylist.txt >easylist.hosts moneill$ cp /etc/hosts etc/hosts.bak moneill$ cp easylist.hosts /etc/hosts moneill$ wget https://easylist-downloads.adblockplus.org/ easylist.txt --2016-03-08 14:31:34-- https://easylist-downloads.adblockplus.org/ easylist.txt Resolving easylist-downloads.adblockplus.org... 136.243.62.212, 148.251.139.76, 2a01:4f8:212:1626::2, ... Connecting to easylist-downloads.adblockplus.org|136.243.62.212|: 443... connected. HTTP request sent, awaiting response... 200 OK Length: 1756007 (1.7M) [text/plain] Saving to: 'easylist.txt' easylist.txt 100%[===================>] 1.67M 368KB/s in 4.4s https://newspaint.wordpress.com/2014/08/18/filtering-easylist-for-hosts-file-style-adblock/
  • 21. adblock + ad block plus acceptable ads
  • 22. rise of blocker blockers
  • 23. shine & carrier level blocking
  • 26. adoption of encrypted web calls / https
  • 27. Mobile is a challenge, especially in app
  • 30. it’s not hard to build
  • 31. it’s largely open source and globally crowd sourced
  • 32. it requires access to something in the document to work
  • 33. ultimately it can be defeated by publishers and ad tech But at what cost…