Blocking with ad server and tracking server hostnames (original) (raw)

last updated: Tue, 09 Jun 2026 14:53:58 GMT last validated: Fri, 12 Jun 2026 11:04:19 3505 ad server hostnames; 7359 IP addresses

| PATREON: patreon.com/blocklist | | | | | | | | | ------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ------------------------------------- | --------------------------------- | ----------------------------------------------------------- | ---------------------------------- | ------------------------------------------------------- | | | main: | [ about the list | how it works | four easy steps | latest news | submit hostnames | ways to use the list | lookup ] | | | tools: | [ hosts file -> BIND converter | BIND zone file creator | miscellaneous scripts | software archive | links ] | | | | | more: | [ related links | site news | list of formats | policy | RSS: updates, news | other bits and pieces | email ] | |

list ad server hostnames: with
only show entries added since:* view list as plain text:
* leave the date blank to list all entries. if one or more fields is set, today's date is used for any unset fields.
list ad server IP addresses: with
view list as plain text:

latest exciting news updates LIVE from the front

| Tue, 05 May 2026 16:22:06 +0000 | || | New format: rpz-nxdomain | | ------------------------------- | --- | ------------------------------------------------------------------------------------------ | | Fri, 14 Mar 2025 12:59:00 +0000 | || | useip option update | | Fri, 12 May 2023 13:27:04 +0100 | || | Breaking parameter change: skip | | Fri, 12 May 2023 13:02:07 +0100 | || | Update to unbound config file format | | Tue, 03 Aug 2021 13:21:34 +0100 | || | Options added to restrict trackers and non-trackers in the list | | Tue, 07 Apr 2020 11:05:42 +0100 | || | Privacy Sandbox app for Android |

→ Older news updates can be viewed on a separate page

about this list

Why would anyone want a list of hostnames?

The ad banners that you see all over the web are stored on servers. Stopping your computer communicating with another computer can be quite simple. So, if you have a list of the servers used for ad banners, it's easy to stop ad banners even getting to your browser.

But ad banners don't bother me

If ad banners aren't a problem for you, then these pages aren't really going to do much for you. But personally, I hate them. I've never got used to having flashing images in the corner of my vision when I'm trying to read. Imagine if real books came with neon lights that blinked messages at you over and over again. And imagine that every time you turned the page, you had to wait a few seconds whilst they changed from neon green to neon yellow. And then they'd send the title of the book, your reading speed, and what chapters you've skipped to the central Library so that they can sell the information to all the big bookstores. Reading real books would be even more unpopular than it is now! But, I guess, maybe it wouldn't - millions of people do exactly the same thing on the Interweb every day (if you substitute the book for a web site).

Why do we do it to ourselves? We need to stop this. It's time to rise up! Let us be blinked at no longer! Let the flashing cease! Down with banners! Up with transfer rates! STOP THE MADNESS!

And, Brothers and Sisters, the first step starts with YOU. Blocking ads makes sense! Start today!

Isn't this a bit much for a list of hostnames?

I started doing this a while ago, and thought I'd put my list up on the Interweb for everyone to use. That was way back in the mists of 'Net time, when the Interweb was just the Web, and dotcoms were still getting funding. Eons later, a simple list of hostnames has evolved in to what you see before you. I guess it just goes to show - even the tiniest amoebic piece of slime can become the President of the USA if you leave it alone long enough.

Why not just use Adblock or some other piece of software?

There's lots of great ad blocking software out there that's probably far more effective than just using this list. But there are also disadvantages to using these pieces of software, and sometimes people are unable to use them:

submit a hostname for the list

If you know of any other lists like this, or any ad servers I don't have listed, please mail me or type the hostname in here. (you don't need to give me your email address, but it would be nice to be able to say thanks. I promise not to use it for anything bad). Please note: although I sincerely appreciate being sent huge lists of hostnames, I don't have the time to check them for duplicates, invalid hostnames, hosts that aren't actually ad servers, etc. Submissions from the form below go into a database that allows me to easily check them and add them to the list. Please use it!

Feel free to combine this list with yours or lists from other sites and put it up on the web, though! Also: I only add top level ad server domains. So, please don't submit hostnames like "ad.se.doubleclick.net", as "doubleclick.net" is already listed, and please don't submit "host1.ads.example.com" if "ads.example.com" is already listed. Unfortunately, including all subdomains would be too time consuming for me. If you find an ad server that you want added but won't be according to these criteria, the best thing to do would be to keep a personal list which you just add this one to.

Unfortunately it's probably not worth submitting anything at the moment - spam has taken over. 10,000 mails a month to sift through, even with automated checking, is just too much extra. Fuckin spammers.

Please send general stuff to pgl@yoyo.org or just fill out the comments form below.

Ad server submission disabled until further notice.

Thanks.

start blocking ads now: four easy steps

So, to start blocking ads:

  1. find your hosts file
  2. download the list of ad servers
  3. copy the list of ad servers on the end of your hosts file (see Where's my hosts file? if you don't know where it is)
  4. restart your browser and that should hopefully be it. Don't forget though - there are loads of other ways to use this list! Using the list as a hosts file is not the most effective, but does help.

how it works

It's possible to set up a name server as authoritative for any domain you choose, allowing you to specify the DNS records for that domain. You can also configure most computers to be sort of mini-nameservers for themselves, so that they check their own DNS records before asking a nameserver. Either way, you get to say what hostname points to what IP address. If you haven't guessed already, the way you block ads it to provide bogus information about the domains we don't want to see - ie, all those servers out there that dedicate their existence to spewing out banner ads.

The hosts file

Probably the most common way people block ads like this is with something called the "hosts file". The hosts file is a simple list of hostnames and their corresponding IP addresses, which your computer looks at every time you try and contact a previously unknown hostname. If it finds an entry for the computer you're trying to reach, it sets the IP address for that computer to be whatever's in the hosts file.

127.0.0.1 is a special IP address which, to a computer, always means that computer. Any time a machine sends a network request to 127.0.0.1, it is talking to itself. This is very useful when it comes to blocking ads, because all we have to do is specify the IP address of any ad server to be 127.0.0.1. And to do that, all we have to do is edit the hosts file. What will happen then is something like this:

  1. you visit a web page
  2. the web page contains a banner ad stored on the server "ads.example.com"
  3. your computer says "ads.example.com? never heard of it. wait a second, let's see if I've got the number on me..."
  4. your computer finds its hosts file and checks to see if ads.example.com is listed
  5. it finds the hostname, which points to 127.0.0.1
  6. "great", says the computer, and sends off a request to 127.0.0.1 for the banner ad that's supposed to be on the page
  7. "oh", says the computer, and fails to show anything because it just sent a request to itself for a banner ad Where's my hosts file?

Of course, that's not the only way to use the list, but it's probably the most simple for most people.

A much more efficient way of using the list is with a nameserver. See below for details.

other ways to use this list

Also, check out the links page for more tools & resources.
You might also want to have a look at a list of DNS servers that Microsoft recommends as working with their operating systems, or DNS Resources Directory's index of server software.

tools and extras

news and stuff

Old news is archived here

# // Tue, 05 May 2026 16:22:06 +0000

I've added a new format for use with RPZ, which returns NXDOMAIN responses instead of 127.0.0.1.

Check it out: https://pgl.yoyo.org/as/serverlist.php?hostformat=rpz-nxdomain.

# // Fri, 14 Mar 2025 12:59:00 +0000

Thanks to Claudius Zingerli for suggesting an improvement to the "useip" query string parameter - it now validates against IPv4 and IPv6 addresses, and also accepts simply "localhost" as a value.

# // Fri, 12 May 2023 13:27:04 +0100

Due to the way the caching is set up, I've had to change the format of the skip parameter. Previously, it used the PHP array assignment by allowing for "skip[]=one.example.com&skip[]=two.example.com". This has now been changed to comma separated: skip=one.example.com,two.example.com.

I don't think too many people use this format, so hopefully it won't be too painful. Sorry about this! I couldn't find another solution unfortunately.

# // Fri, 12 May 2023 13:02:07 +0100

The Unbound config file format has been updated to prepend a server: line. This was reported by a helpful user and should have been there all along. Thanks!

# // Tue, 03 Aug 2021 13:21:34 +0100

I've added a new query string parameter to my blocklist: onlytrackers. Set to 1 or some non-zero value and it'll only show entries from the list which are explicitly marked as trackers.

There's also an option to hide all trackers: notrackers.

Details on the formats page: https://pgl.yoyo.org/as/formats.php#onlytrackers

Examples:

# // Tue, 07 Apr 2020 11:05:42 +0100

Just wanted to share what looks like an excellent app for protecting your privacy: Privacy Sandbox for Android. It's a browser that blocks trackers and ads in the background, supports multiple lists, and can display stats on what's been blocked.

Quite unknown at the time of writing - only 500+ installs - but it seems to be getting good reviews, and worth checking out! And, of course, it supports my list so there's a reason to install it if you need one, hah. Here's a direct URL: