Ads disappear on every device at home: AdGuard Home step by step

One free program on a home computer cuts ads and trackers on phones, laptops and the TV at once. How to install it, how to connect the router, and why it does not remove ads on YouTube.
Ad banners in apps, ads on a smart TV, trackers watching every device — and you can't install an ad blocker on a television at all. There is another way: one free program on one home computer, and the filter works for every device in the house at once, including the ones you can't install anything on. Below: what this program is, what it can't do (YouTube is on that list), and how to set it up. If you'd rather not fiddle with commands, there is a ready-made prompt for an AI agent.
In short, if you're pressed for time
What it is. AdGuard Home is a free, open-source program. You install it once on a computer in your home network, and it acts as a filter for the internet addresses of every device pointed at it. Nothing has to be installed on the devices themselves.
What you need. A computer that is almost always on at home: an old laptop or a mini PC will do. And access to your router's settings: the login address and password are usually printed on a sticker on the router.
What it does not remove. Ads on YouTube and Twitch, and sponsored posts on Facebook, Twitter and Instagram. Anything that comes from the same address as the content itself can't be closed this way. More on that below.
How long it takes. For a first-timer I would set aside an evening. The installation can be handed to an AI agent: then all you do is say "yes" and work in the router's window.
Safety. According to its authors, the program does not collect usage statistics and does not contact any web services unless you configure it to. The query log stays on your computer.
How it works
When a phone opens a website, it first asks a special server where that site lives. That server is called DNS: the phone book of the internet. Usually your provider or router keeps it.
AdGuard Home is your own phone book on your own computer. When a device asks for the address of an ad server or a tracker, the program answers with nothing, and the banner or counter simply never loads. The authors call this a "black hole". Everything else works as usual.
To make this work for every device at once, you enter your computer's address in the router's settings as the DNS server. After that, phones, laptops, tablets and TVs connected to that router ask your program for addresses.
What it removes and what it doesn't
| What | Result |
|---|---|
| Ad banners in browsers and apps that load ads from separate ad addresses | Blocked |
| Trackers and analytics on phones and computers | Blocked |
| Ads and tracking on smart TVs, speakers and other devices where you can't install a blocker | What comes from ad addresses is blocked (the project's README names such devices directly) |
| Phishing and malware addresses, adult sites | Filters can be turned on |
| Ads on YouTube and Twitch | Not removed |
| Sponsored posts on Facebook, Twitter, Instagram | Not removed |
I'll be direct about YouTube, because people ask about it all the time. AdGuard Home blocks requests to ad addresses. But a YouTube video and the ads inside it come from the same servers. Block the ads by address and the video itself stops loading. The project's authors say so in their limitations section: advertising that shares an address with the content can't be closed by a DNS blocker. They plan to add a proxy that filters content at some point, but even then, in their words, it won't handle everything. Today, YouTube needs a different type of blocker, not DNS. That is why our reel has no words like "YouTube without ads", and you won't find them here either.
One more limit: on a phone you can set your own DNS only for Wi-Fi, not for the mobile network. Away from home, on mobile data, there is no protection.
Who it suits and who it doesn't
It suits you if you have many devices at home and some of them can't take a blocker (a TV, a speaker, a game console), you have a computer you can leave on, and you want to see which device talks to what. It does not suit you if you want "one button on the phone", have no always-on computer or no access to the router settings, or if removing ads on YouTube is the main goal.
Step 1. Pick a computer and prepare
You need a computer that sits at home and is on whenever the internet is in use. The program runs on Windows, macOS, Linux and FreeBSD, and there is an official Docker image (Docker is a way of running programs in separate "boxes"; an ordinary user doesn't need it). Three ports must be available: 3000 for the first setup, 80 for the control panel, and 53 for the DNS server itself. A "port" here is the number of the door a program uses to talk over the network. Port 53 must not be taken by another program.
One detail I would think about in advance. If the router points only to your computer and the computer is off, sites will stop opening on all devices. Before changing the router settings, write down or photograph the old values so you can quickly put everything back.
The computer's address on your network (for example, 192.168.0.15) must stay the same, otherwise the router will send requests "into the void". How to fix the address depends on the router: look for "address reservation" or "static DHCP".
Step 2. Install: the AI agent route
Claude Code is an AI agent that runs on your computer and executes commands after you approve them. It requires a paid Claude subscription. If you don't have one, go to the manual installation.
Open Claude Code in an empty folder on the computer where AdGuard Home will live, and paste the prompt. Take the repository link from the project's card (it is below, in the platform section).
```
You are helping me install AdGuard Home on this computer. It will become a home DNS server that blocks ad addresses and trackers for all devices in the house. I am not a technical person: explain in plain words and clarify any term in one sentence.
Project repository: <repository link from the project card>
Order of work:
- Detect my system (Windows, macOS or Linux) and tell me what you found. Check whether port 53 is taken by another program and tell me the result. Change nothing at this step.
- Read the project's README, the Getting Started section, and propose the installation method it describes for my system. Show the command and explain what it will do. Run it only after my "yes".
- After installation, start AdGuard Home and tell me which address to open in the browser for the first-time setup wizard (it runs on port 3000). I will go through the wizard myself.
- Help me register AdGuard Home as a service so it starts by itself after a reboot, and check its status.
- Find this computer's address on the home network and write it on a separate line. Explain how to reserve it for this computer, but change network settings only after my "yes".
Rules: do not touch anything extra. Ask before deleting any files or changing any settings. Do not turn off the firewall. Do not write passwords or keys into files and do not print them in the chat. Do not open the router settings and do not ask for the router password: I will do that myself following your hints.
```
The agent asks permission for every command: read it and answer "yes" only when you understand why it is needed.
Step 2 (manual). Installing without an agent
From the project's releases page, download the archive for your system (the repository link is in the card on the platform), unpack it and open a terminal in the AdGuardHome folder. A note from the authors: on macOS Catalina and newer, keep the working folder inside /Applications; on Fedora Linux, in /usr/local/bin.
On Linux and macOS, the first run is done with administrator rights:
```
sudo ./AdGuardHome
```
On Windows, open Command Prompt or PowerShell as administrator and run AdGuardHome.exe from the program's folder. The terminal shows a message with the address of the first setup. By default it is 127.0.0.1:3000 in a browser on the same computer. Open it and the first-time setup wizard appears. Go through it following the prompts; if it offers to set a login and password for the panel, set them and keep them in a password manager.
So that the program starts by itself after a reboot, register it as a service:
```
sudo ./AdGuardHome -s install
```
On Windows: AdGuardHome.exe -s install in Command Prompt as administrator. The service state is shown by -s status, stop is -s stop, start is -s start.
If on Linux you'd rather not run the program as administrator, the authors describe workarounds (a permission via setcap, or a different DNS port). For home use I would leave them alone.
Step 3. Tell the router where to ask for addresses
- Open the router settings in a browser. Usually it is
192.168.0.1or192.168.1.1; the exact address, login and password are on the sticker. If your router is set up through an app, open the app. - Find the DHCP or DNS settings. Look for a field with the letters DNS where you enter two or three sets of numbers.
- Enter in the first field the address of the computer running AdGuard Home, and save.
- If your router doesn't let you set your own DNS, the authors suggest turning on AdGuard Home as a DHCP server (the part of the network that hands out addresses to devices) or checking the instructions for your model. This is for confident users: I would first look for the router's own instructions.
Devices pick up the new DNS the next time they connect to Wi-Fi: the easiest way is to turn Wi-Fi off and on on your phone.
If you have no access to the router, you can set DNS on an individual device. On Windows: Network and Sharing Center → Change adapter settings → the connection's Properties → IPv4 protocol → "Use the following DNS server addresses". On macOS: System Settings → Network → Advanced → the DNS tab. On iPhone: Settings → Wi-Fi → your network → the DNS field. On Android: long-press the network in the Wi-Fi list → Modify network, in the advanced settings switch IP from DHCP to Static and fill in DNS 1 and DNS 2. Menu names depend on the system version.
Step 4. Check that it works
Open the program's panel at the address the wizard showed (by default it is port 80): on the computer itself, 127.0.0.1; from other devices, the computer's address on the home network. Visit a couple of sites with ads from your phone. The request counter on the panel's main page goes up, and blocked requests appear in the statistics. If the counters stay at zero, the device isn't using the new DNS yet: reconnect Wi-Fi and recheck step 3.
Parental control and "who is talking to whom"
The program has two sections that are useful for a family.
Parental control. It blocks the addresses of adult sites. There is also forced safe search in search engines. It works at the level of the home network, so you don't have to set up each child's phone separately. Settings can be applied to all devices at once or separately to each one.
Query log and statistics. The panel shows which device contacted which addresses and how many times. A TV, a speaker, a robot vacuum, a camera: the list shows who sends requests outward and how often. Whatever is unwanted can be closed with your own filtering rule. I would do that carefully: if you block an address a device needs to work, the TV may lose some features, and then the rule has to be removed. The program won't tell you what in the list is superfluous and what is needed.
The log shows requests by name. If a device contacts a server directly, by numeric address, DNS won't see it, so I wouldn't promise that blocking an address completely stops a device from sending data.
Safety and honesty with your household
- The control panel is only needed inside the home network. Don't forward its port outward through the router.
- The query log shows what everyone in the house opened. Tell your household that it is kept, especially if there are teenagers or guests.
- The program updates from the panel with a button; the previous file and settings are saved in the
backupfolder.
If it didn't work
- Sites don't open at all. Check that the computer with the program is on and the service is running (
-s status). If it's urgent, put back the old DNS values in the router that you wrote down in step 1. - Ads are still there. They may not have come from an ad address but from the same one as the content itself (that is how YouTube and social posts work). Another possible reason: the device or browser uses its own secure DNS and bypasses the home one. Check the query log: if there are no requests from that device, it isn't using the router's DNS.
- Won't start: port is busy. The DNS server needs port 53. If another program already holds it, stop that program or ask the agent to find which one.
- Doesn't work on a smartphone away from home. That is a limit of the method: custom DNS is set only for Wi-Fi.
How to continue on AI SKILLS
The project's card in the "Ready-made services and platforms" section: AdGuard Home. The description and project details are open to everyone, and the repository link in the card is available on the Creator plan. If you came here from our Instagram reel, the bot has already sent you the links.
The same section has other services you install on your own computer or server: the catalog of ready-made services. If installation looks hard, describe the task in your own words in Cerebrum, a chat that knows the platform's tools and suggests where to start.
Setting up such a filter for parents or friends takes an evening, and it is a good way to help. For some people it grows into a small service over time, but I don't promise any income.