How do I determine what domain an ad is coming from?

Block ads or fix broken sites

This FAQ is written in the context of finding out how to block an ad that isn't blocked automatically, but the same steps can be used to troubleshoot issues with sites that don't function properly. An example is that sometimes certain payment gateways try to collect metrics on the sale, but these domains are blocked by Pi-hole, so the payment cannot be processed. Also, some links send you through several referrers and if one of them is blocked, you may land on a blank page instead of the site you meant to go to.

Pi-hole blocks many ads, but not all of them

Pi-hole sources its ad domains from third parties (blocklists), so you may run into an advertisement that is not part of one of those lists. You can easily add a domain to the blacklist using the pihole -b command, or via the Web interface. In order to do this, you need to find out where the ad is being served from.

Tools To Use

The Pi-hole Query Log

You can view the log in real time as it happens using pihole -t. Run this command while you browse to the site that is showing ads. As the page loads up, watch the output in your terminal to track down what domains are being queried.

The same information is also available in the Web interface.

Adam:ONE Assistant (formery DNSThingy)

This Chrome extension will list all of the domains that are queried when a Web page is loaded. You can often look at the list of domains and cherry pick the ones that appear to be ad-serving domains. If nothing else, this can help narrow down the search.

Chrome's Inspector

To find the exact domain an ad is served from, you can use the developer tools built into Chrome. Just right click an advertisement and choose inspect.

This will open a split screen view, that lets you see the Web page's information, including what we are interested in finding, the domain name the advertisement is coming from.

Once you find this domain, just add it to your blacklist.

Difficult Ads

Some Websites self-host their ads, making them difficult to block with Pi-hole because if you block that domain, the site you are trying to get to won't load. But often, Websites will use an advertising network such as Google Ads, so the advertising content is hosted from Google's servers instead of the site the ad is being displayed on.

10 Likes
Doesn't really block
Some popups aren't getting blocked
Country specific Block list (Australia)
How to whitelist Xiaomi Mi Vacuum Robot?
Request: Custom Blacklists
Any way to block app ads?
Android messages RCS stops working when I am using Pihole
Can't access Apple App Store
Remove the Banner Ad on the Fire TV Home Screen
Pi-Hole Is Kinda Working?
Finding an ad on a site
Blocking ADs
Blacklisted plista.com ads keep reappearing
Can't watch Fox News Live?
Ad blocking not working only on Windows 10 machine
Ads are still showing in "Free video chat online" (Android App) (NSFW)
Whitelisted Site, not displaying correctly
Pihole blocks our website but it's not on any blacklist
Samsung TV: Amazon Prime & Youtube geblockt
Question twitch
Firefox loads Ads - other browsers don't
Where can I req a filter of a webbpage?
Youtube history
List to block popular games
Pihole Blocking Talkatone from Connecting
How to access allmusic.com with pihole running?
Flipboard Advertisements - Can the advertisements be blocked?
Pi-Hole with Unbound (Unable to play online games)
Chat panel on site stopped work
Anyway to bypass nydailynews.com's detection of Pi-hole ("disable ad block" nag)?
How to block youtube completely?
I want to disable Video on Alexa Show with pihole - is this possible?
Xbox app not working with pi-hole enabled
Ancestrydna.com seems to be blocked but
Pihole still blocking google play store
Apple TV tv anywhere apps
How to check what sites blocking in iOS apps
Cant figure out whitelisting
AMC Streaming being blocked
Blocking radio buttons on Orvis and L.L.Bean
JS problems on Kickstarter?
Ads on www.orlandosentinal.com
BBC Videos
Instagram not loading with PiHole enabled (iOS device)
Particular domain (spiegel.de) not resolving to address
Some ads are not blocked
PiHole blocking access to a specific website
Seeing ads new Pi-hole install
Ads are not blocked.
Videos on stern.de are not being played
Pi-Hole not blocking ads
Cannot get all images to show on DrudgeReport
Pi-Hole Blocks Chromecast
How to block spotify player on windows
Banking.postbank.de/rai/login is not working
Kicker Werbung blocken?
PiHole blocking but ads are still showing
Google Hangouts & Googe Voice Work Intermittently
Show ads in certain domain
Issue with hulu
How are some websites able to bypass Pi Hole?
AMC & TNT apps not working
Greetings: A quick hello
YouTube plays ads on my nVidia Shield, like Pi-Hole never existed
Pi-Hole is set up, how to verify that it works and adding new sites
iOS pop up
My pi-hole does not working properly
Peloton Stationary Bike
Ads.txt diverser Seiten auslesen, bereinigen und Liste generieren
Blocked images and videos
Ads not blocked on some clients
Pi-hole working but not blocking all ads - Pihole as DHCP and DNS server
Pihole doesn't always block ads
Help with Whitelisting
Pi Hole blockt nicht alles
Halo infinite pihole issues
Domains getting blocked that shouldn’t be
Pi-Hole log claims doubleclick.net and googleadservices are blocked, but those ads still show
PiHole blockt einige Videos
blocking Fortnite
Pi-Hole running but not blocking ads
Pihole sometimes breaks internet connection and sometimes stops blocking ads
Pihole sometimes breaks internet connection and sometimes stops blocking ads
Bekomme Stream nicht mehr zum laufen
How to analyze a device in my network?
Add easylist.to to pihole
Hulu
Pi Hole wird ignoriert?
Whitelist still not working?
Odd whitelisting issue since v4.0.0
Does not open websites
Won't Block Ads
Pi-hole doesn't block any ads unless DNS is specified manually for each device
iOS evading PiHole?
Bypass Pihole on Specific Browser
Site Won't Resolve - All White
What tools can I use to troubleshoot blocking?
Specific Domain Help: FreshDirect
What does pihole -t do
PiHole on RPi3B+ went from working to barely responsive
Probleme mit Fritzbox 7590, pi hole und Fritz app fon
Issues between Pi-hole and Sky Q since 2 days
Need help whitelisting paradox launcher
Can I block Android TV updates?
Autotrader.com advance search doesn't work behind pi-hole
Alexa get stuck with long blue on
Streaming pages blocked?
Pihole v5 Upgrade - Slow response?
ERR_NAME_NOT_RESOLVED + CSS Issues after Update to Pihole 5.0
After working for a while, pihole is not blocking ads anymore
Microsoft Authenticator
How to block ads in heise.de/autos?
ISP blocking my content
Pi-Hole is not working? why not
Domäne Freigeben
How to block ads in website?
PiHole can't resolve DNS for itself
Slippery Ad Servers
Hilfe bei Blacklist (Regex)
Werbung auf Vivo entfernen
Cant block AdsKeeper
Blocking ads on DailyMotion
disqus.com Kommentare laden nicht mehr
Pihole blocking PeacockTV
Using pihole DHCP setup causes most traffic to fail
Bloomberg iOS Video Streaming Blocked
Speedlink 5501 Konfiguration funktioniert nicht
How to Block Telegram Download
Digitally Imported Radio
Ads not being blocked in apps
Blacklist feature doesn't work
My Pi hole is not blocking ads
Fire TV issue
How to block ads on specific sites.
Bild.de app auf whitelist
Ads not being blocked using Pi-hole's DHCP
Mobile Games not working on home wifi network.
I just don't get it
Basic Errors, Dns is set properly... I think
Probleme mit Wikipedia-Links von Google kommend
Option to remove some domains from stats and graphs?
Ads blocked on some browsers but others show the ads
Facebook not working properly
Trakt.tv doesn't work with pihole activated
Blocked Popup Login Window
Pihole not blocking any/very few ads.
Twitch App Being Blocked
Blacklist not work
Weather channel maps not loading
Wie Filter erstellen fĂĽr z.B. Werbung bei Wetteronline?
Need help unblocking Reddit web-pages in PiHole Network
Possible to block ads in Facebook games (Quiz Planet)?
ITV player block
Is Pi-Hole blocking properly?
Different behavior after update to V4 from V3
Again, not blocking Google ads
Pihole is blocking Android Notifications on statusbar
Probleme mit Airtable und Integromat
Can not open google.com, youtube.com and gmail.com after setting the system up
I have no idea what's going on
VoWifi with Vodafone DE and pihole not working
HBR.org search and log in buttons do not work when pi-hole is set as DNS
PiHole working but not blocking
Commonly Whitelisted Domains
Blocking ads on Youtube only works with firefox
Block IMDB "Sponsored" Banner in iOS App
Can't access Amazon
Pihole shows text but not icon
Bloomberg and Marketwatch Video Blocked, why?
PiHole blocking access to a specific website
Facebook Abmelden und Kommentare lesen geht nicht mehr
Pihole blocking website not on blocklist
Pi Hole not blocking ads
Pi-Hole seems to have suddenly started blocking Netflix on TV only
0,3% blocking
Sonos verliert regelmäßig Amazon Music
N00b questions
Block Every Website Then Whitelist Some
Chinese Blacklist available?
DNS resolution failing for common domains
DNS Request Analyser from PiHole Dashboard
Mobile Game not opening at all with Pihole enabled
Not blocking ads
Google 2FA issue
Werbe-Grafiken der Hauptdomain blocken
Problem with Weather Underground maps not loading
All works great except for whitelisting.
Roku Ad Appearing Again
Pihole blocking video?
Wie URL richtig blocken
Website circumvents adblocking
Pi-Hole impact on emails
Ad Block for Sky Stream Puck (UK)?
Pi Hole Mysteriously stopped working
Pi-hole & DHCP & UPnP
Stop Ads from opening browsers! New To this
Unifi Protect blocked externally by Pi-Hole
Whitelist-Einträge für Sperrbildschirm Windows-Blickpunkt
Having a lot of troubles with AliExpress (images won't load)
Pi-Hole unable to block ads globally
PiHole isn't blocking Ads, i'm just trying to understand the mechanics
Pi-hole not working properly
Pi-hole integration with Windows ActiveDirectory
Pi-hole blocks ads in chrome
Pihole block websites that are whitelisted.does not allow aps to work
Web content unchanged
Pi-hole with AT&T router
Can’t watch videos on gamespot.com
PiHole *apparently* works but it is not blocking ads
Harry potter android und pihole
Spotify - Web Player is blocked
WhatsApp Chat blockieren
Pihole Not Working Nearly as Effectively (over last few weeks)
Bild.de nervt seit 3 Tagen
Question for beta5 / windows 10 users
Vodafon Onenet login
Which domains do I need to whitelist to get Fitbit for Android app to connect?
Tv.dazn.com auf der Whitelist
Blocked sites without any info in the log
Cnbc search stoped working
Pihole problem
AWS Management Console Search bar blocked
Cname not decoded
Pi-hole doesn't seem to work
Message display: Blocked or filtered by Pi-hole
Ads galore on devices after installing. Is this to be expected? Does it need to run a few days?
Rclone mount
Win10 Remotehilfe / Quick Assist
TeamViewer not Work
Pi Hole & Fritzbox 6591
Samsung TV Apps won't open with PiHole on
Pi-hole not blocking ads
YouTube vollständig blockieren
Netflix & Fire TV bzw. Smart TV
American Express site acts wonky when Pi-Hole is enabled
Samsung TV Apps won't open with PiHole on
Dashboard Indicates ads are being blocked, but I am still seeing every ad possible
Pi-hole Spotify
[First Time User & Setup Issues] Static IP, changing DNS server IP issues, and RP3b+ no longer showing up in router IP list
Network kicking out some devices
Issue with yahoo adverts not blocking with BT Home home hub 2
Zappn App funktioniert nicht (Android)
HBO GO samsung tv
Blocklists used to generate Pi-hole's Gravity
LinkedIn Mobile pop up, Reddit too
Youtube hidden comments because restricted mode
My Pi Hole is not blocking ads
Instagram blocking SPONZORED ADS
IPv6 DNS disconnecting pixel 5
Pi-Hole & Sky Q - UK
NEST app on iPhone not working
OpenDns isnt working
Pi-Hole mit Hue, Sonos, ioBroker und Alexa
Enabling ShopAtHome
Google street view blocked
Amazon & Alexa Apps getting block
Ads escaping Pi-Hole
How to block sign in with google via pihole?
Why do speed tests no longer work?
Spotify on Google Home Mini not working
Marssalbe.de zeigt im oberen Bereich eine zerstörte Seite
Pi-Hole is acting weirdly
Why do I keep seeing Ads, been trying to set Pi-Hole for 10 hours now
Pi-Hole blocks Twitter pics
False negatives and positives (ads)
Apple Music whitelist
Spotify Album/Song covers don't load
Kommentarfunktion auf Sport1 wieder hinzufĂĽgen
How to add blocklist from uBlock Origin?
Blockierte Geolocation in SWR & ARTE
Block webrtc with pihole?
Can't get rid of a certain add on a local newspaper
Query Log doesn't pick up my mobile phone activity
Pi-hole blocking domain White List does not override
Blacklist whatsapp
Tpc.googlesyndication.com and googleads.g.doubleclick.net getting through
Internet slow to respond
Allowing ads in email
Static Image Not Blocking ads on youtube (static image and others)
Trying to get pictures on recipe sites to load
Narrowing down ad getting through Pi-Hole
Pihole blocking https://radioplay.dk/
Setting to regularly purge query log after a period eg 3 months [Suggestion]
WhatsApp desktop being blocked
Pi-Hole not blocking ads
New to Pihole - Not Blacklist populated
DNS over HTTPS error appears continuously
Impossible de bloquer les pubs sur certaines appli mobiles
Whitelist is not allowing site
Pihole still not blocking
Pi Hole not blocking any ads at client level or router level
SoundCloud used to work for all ads, now only the first one or two
Amazon Page does not load properly if at all on Chrome
Pihole not blocking ads
Pi-Hole not blocking any ads
Discord not working with Pi-Hole
Web background slipping through
Query log: Woher kommen die anfragen?
Welche Blockfilter
Application Control filtering with Pihole
Oddball webpage behavior
Blocking Desktime app
Nest thermostat can't connect to nest servers
Domain wird auf 127.0.0.1 umgeleitet
Pi-hole blocking Sony LIV live channels
Pihole randomly stops working after a day or two
Ring Doorbell Video History Not Loading
Need help unblocking a domain for some game
AVAYA Ip Telefon-App funktioniert nicht
Staying ahead of the “anti-blockers” redeux … boingboing.net and ad blocker blocker
Youtube TV shows loader forever
Google play not working
Can't open New Yorker article linked from email subscription with them
Blocking Alexa (Amazon voice assistant)
Fox News Comments
Philips Hue Bridge
Pihole blockt NZZ App (Android) - wie finde ich, was ich whitelisten muss?
Mobile devices ads blocking
Can't block this pesky advertisement
Can't block this pesky advertisement
Problem with zippyshare / Pyload & pihole
Ads not being blocked
Opera VPN not connecting behind pihole
Pi hole Installed on Raspberry 4, Ad still continues
How to block ads from specific site?
Not being able to watch movies on the Telegraaf (nl. newspaper)
Help with a website
Streaming Apps on Roku being Blocked
Fidelity App on Android not Working
Ads not being blocked
Ads not being blocked
Locate domains for whitelist
How to set up IPv6 for Pihole correctly?
Blocking problem after updates
Showing Ad but Pi Hole says domain blocked
Block list disabled internet icon and would stopped outlook sync
Pi-hole blocking Instagram even when not enabled
Pi-Hole eingerichtet, Youtube Ads am PC verschwunden, am iPhone/iPad aber noch da
How to monitor just one host?
Router requires multiple DNS entries
Lista de anuncios
Adchoices is my whitewhale
Ads showing again
Nvidia Shield Chromecast problem
Looking to unblock ign.com comments
Domain still blocked
How do i block certain sites
Pi holes percentage of queries Blocked is less than 30%. I'm still seeing ADs
VirtualHere problem with Pi-Hole?
WhatsApp Desktop Blocked By Pi-Hole
What does pihole -t do
Pi-hole preventing email images from loading
Random Apple Services Failure (Apple Music, App Store)
New install is not blocking anything
1. PiHole variable performance in different environment; 2. Client rate-limited; 3. Failed to adjust time during NTP sync
New Setup is Complete Seems to Work - But Not Blocking Ads
I need help blocking ads on Google
Problem with Login Page for a website
Started seeing Google Ads again
Probleme mit Onleihe und Tolino
Influence of Pi-hole on UPnP Portmapping?
Speedtest.net and Fast.com not working PiHole + unbound
Pihole active but not blocking effectively
How block Netflix and Co?
Last Pass Autofill not working after pihole install
Pi-Hole blocking behaviour not understandble
Roku - apps stopped working
DNS problems
Blocking ads in Windows 10's weather app
Plex and secure remote access
PiHole Blocking Bria Softphone
Blocked pages, even with disabled Pi-Hole and green entries in query log
[RESOLVED] PiHole seems to be alive and running, but blacklisted ads getting through
Pihole block zerotier
Facebook ads above friends list
No ad blocking on the speedtest site
Blocked url
Pi-hole Not Blocking Ads on Workday Online Training Site – Need Help Troubleshooting
[Solved] Pi-Hole is blocking Draftkings updates?
Flipboard blocked only device? How is this even possible?
Pixel 5 No Internet while running Pi-Hole and Unbound
Blocked url
Blocked Services -> Find Responsible Ad List
Adlist might be blocking links on emails from Kicad forum
New to pi-hole. Whitelist issue
Amazon Browsing History
Pi-hole not loading some websites
Whatsapp calls fail with Pihole
Ally Banking App (iOS)
Ally Banking App (iOS)
Pihole 5.14 in Hyper-V DNS Service is not running
New google ads settings?
WhatsAPP/ Signal Messenger calls
Block telegram
Oculus Quest 2
Pihole is blocking for buying in the game Dragonscape
DiscoveryPlus app will not stream video when going through pihole due to DNSSEC in pihole
Sling Latest Update - Blocked by Pi-Hole
PiHole blocking my SenseCap M1 Helium Miner?
Pi-Hole does not block most ads
Pandora on Xbox One freezes on ads
Constant random DNS crashes
Problems with some site log-on pages
Pihole works but most of the time doesn't work
Gmail settings being blocked, even with blocking disabled
WeChat Stickers: Strange problem; Cannot load stickers even when blocking is disabled in pihole
Sometimes pages do not load -- ios Safari - ipv6
PlayStation 5 got frequent SSL Errors due to hostname resolution
Pi-Hole doesn't work as good as AdGuard did for me
PiHole not blocking queries or domains
Simplisafe app not working with pi-hole
Unable to access google and microsoft 365
ERR_ADDRESS_INVALID when using PiHole
Some Email content is being withheld
Whitelisting Facebook
Site whitelisted but not showing images
Ads still showing up
Admarkt.ebay-kleinanzeigen.de
Help Don't work Google speak to text service
Pi-hole broke weather.com
Talkatone blocked. Ads still show after blocking Google DNS on Router
Very low percentage of blocked sites
Cannot reach router admin page now that I'm using pihole
Pihole Unable to block Ad on website
Pihole cannot block beap.gemini.yahoo.com adware in the latest version
Google Home and Ring : Not working
New install of Pi-Hole and facebook no longer works even with whitelisting
Kleinanzeigen App ohne Funktion
Block mobile game on iOS?
Blocklist for Pluto TV?
Pihole cause amazon prime video not working on smart tv
Login blocked for Sketchup
Still seeing ads on fire10 tablet
I want to block all dns queries
Focus.de Kommentare geblockt
Some Videos not loading (e.g. Movipilot) and no clue which domain in the log causes it
Helo with MW2
How to block Reddit?
Tv2.dk is buffering nearly every 5 or 10 minutes
Apple Watch Problems
Why does this website won't load when use with Pi-hole?
WhatsApp (video) call blocked by Pi-Hole
Docker on MacOS Slow DNS Resolution
MagentaCloud klappt nicht mit existenten Pi.Hole ... was läuft da falsch?
Pi-hole:Finger weg vom LAN-Traffic?!
Amazon Sponsored ads whitelist?
Google ads have suddenly started to creep through
website still detecting adblock despite being on the whitelist
Pi-hole not blocking ads on some sites
Pi hole dont block ads
Pi-Hole blocking CNN videos
Anrufe bei Signal
The latest my pihole is not blocking stuff thread
Konfiguration von Pi-Hole zur Zulassung gesponserter Links auf Google
Investopedia doesn't work
Regression in the past month? Some sites/apps are showing ads again
Quick whitelist/blacklist from the pihole.log? (or a new sidebar section)
Problem with MS Teams that affects the display of online status when using pihole and unbound
Https://www.ladbible.com/videos can't get it to work!
Pi hole and Alexa
Some websites not working properly
Followed setup guide but not working
Pihole Not Working (Template Filled In)
Video wont play from CNN website
How can I block these ads?
LAN devices not connected to internet
Cannot access FusionSolar app (iPhone) when behind Pihole
Pi-hole setup working but device internet cutting out
Commonly Whitelisted Domains
Go-Play streams blocked
Wall Street Journal reader comments being blocked
Banking website fails to load when Pi-Hole is in use
Spotify connect seems to be blocked by pihole
Hulu videos aren't playing
Pixiv.net still has some ads showing
[SOLVED] How to block game servers
Cannot login in paypal app (iphone)
Bloomingdales.com
Google ads are not blocked
NVIDIA driver install problem
Traffic and public transport widgets on iphone
Pandora on android still gets ads
How to debug a website that doesn't work properly
Smart TV, Sony KDL-48WD650
How to sort out site issues?
Pihole (and other adblockers) block reviews for clothing sites: how to fix?
Cross Media Panel - Whitelist
Blocking Alexa (Amazon voice assistant)
Blocking reCAPTCHA?
Whitelist Android Commercials
Pihole blocking all hotukdeals links
Redbull.tv video's won't play
Certain pages won't load in Safari
Kodi no longer working after pihole install
Can`t browse around the webpage
Block Ads on Viber Desktop
Images on Marketwatch.com being blocked
How do I block the ads on Cam4.com (NSFW)?

A post was split to a new topic: Finding an ad on a site

A very good method to use when determining what to block and what not to block (in real-time) can be had by browsing to the offending site on a Tor Browser.

1 Like

The "noscript"-addon is also available for firefox, no need to install Torbrowser :slightly_smiling_face:

1 Like

Bei "DNS Rebind" in der Fritzbox hatte ich "pi.hole" eingetragen und auch mal testweise wieder herausgenommen. Meinst Du das?

A post was split to a new topic: Blocklist for Pluto TV?

A post was split to a new topic: Block mobile game on iOS?

This section is titled "Block ads or fix broken sites".

But while I see instructions to black ads (-b), I don't see instructions to fix websites (-w).

What exactly is a "broken" web site? A "fixer" app can change code, but it doesn't know what was there to begin with, or whether the original contained errors.