Pi-Hole Werbeblocker
Lerne, wie du mit Pi-Hole netzwerkweit Werbung blockierst – für alle Geräte in deinem Heimnetzwerk, ohne zusätzliche Software installieren zu müssen.
Learn how to block ads network-wide with Pi-Hole – for all devices on your home network, without installing any additional software.
Was ist Pi-Hole?
Pi-Hole ist ein DNS-basierter Werbeblocker, der auf deinem Raspberry Pi läuft. Er funktioniert als DNS-Sinkhole: Alle DNS-Anfragen aus deinem Netzwerk werden über den Pi geleitet. Wenn eine Anfrage an eine bekannte Werbe- oder Tracking-Domain geht, wird sie blockiert – noch bevor die Werbung überhaupt geladen wird.
Pi-Hole is a DNS-based ad blocker that runs on your Raspberry Pi. It works as a DNS sinkhole: all DNS queries from your network are routed through the Pi. If a query targets a known advertising or tracking domain, it gets blocked – before the ad even loads.
Vorteile von Pi-Hole:
Benefits of Pi-Hole:
Blockiert Werbung auf allen Geräten im Netzwerk (Smartphones, Smart-TVs, Tablets, PCs)
Blocks ads on all devices on the network (smartphones, smart TVs, tablets, PCs)
Kein Adblocker auf jedem einzelnen Gerät nötig
No need for an adblocker on each individual device
Beschleunigt das Laden von Webseiten, da Werbung gar nicht erst heruntergeladen wird
Speeds up page loading since ads are never downloaded in the first place
Schützt deine Privatsphäre durch Blockierung von Tracking-Domains
Protects your privacy by blocking tracking domains
Übersichtliches Web-Dashboard mit Statistiken
Clear web dashboard with statistics
Pi-Hole installieren
Stelle sicher, dass dein Raspberry Pi mit dem Internet verbunden und das Betriebssystem auf dem neuesten Stand ist. Aktualisiere zunächst dein System:
Make sure your Raspberry Pi is connected to the internet and the operating system is up to date. First, update your system:
sudo apt update && sudo apt upgrade -yInstalliere nun Pi-Hole mit dem offiziellen Installationsskript:
Now install Pi-Hole using the official installation script:
curl -sSL https://install.pi-hole.net | bashDas Skript startet einen Installationsassistenten. Folge den Anweisungen auf dem Bildschirm. Du wirst gefragt nach:
The script launches an installation wizard. Follow the on-screen instructions. You'll be asked about:
Upstream-DNS-Provider (z.B. Google, Cloudflare, OpenDNS)
Upstream DNS provider (e.g., Google, Cloudflare, OpenDNS)
Blocklisten (die Standard-Blockliste reicht für den Anfang)
Blocklists (the default blocklist is fine to start)
Ob du das Web-Interface installieren möchtest (empfohlen: Ja)
Whether to install the web interface (recommended: Yes)
Ob Logs aktiviert werden sollen (empfohlen: Ja)
Whether to enable logging (recommended: Yes)
Tipp
Notiere dir am Ende der Installation das automatisch generierte Admin-Passwort! Du brauchst es, um dich im Web-Dashboard einzuloggen.
Write down the auto-generated admin password shown at the end of the installation! You'll need it to log into the web dashboard.
Admin-Passwort festlegen
Falls du das automatisch generierte Passwort ändern möchtest oder es vergessen hast, kannst du ein neues Passwort setzen:
If you want to change the auto-generated password or forgot it, you can set a new one:
pihole -a -pDu wirst aufgefordert, ein neues Passwort einzugeben und es zu bestätigen. Wenn du einfach Enter drückst, ohne ein Passwort einzugeben, wird der Passwortschutz deaktiviert (nicht empfohlen).
You'll be prompted to enter a new password and confirm it. If you just press Enter without typing a password, password protection will be disabled (not recommended).
Router-DNS konfigurieren
Damit Pi-Hole für alle Geräte in deinem Netzwerk funktioniert, musst du den DNS-Server in deinem Router auf die IP-Adresse deines Raspberry Pi ändern. Finde zuerst die IP-Adresse heraus:
For Pi-Hole to work for all devices on your network, you need to change the DNS server in your router to your Raspberry Pi's IP address. First, find the IP address:
hostname -IGehe dann in die Einstellungen deines Routers (meistens erreichbar unter 192.168.1.1 oder 192.168.0.1 im Browser) und ändere den DNS-Server:
Then go to your router's settings (usually accessible at 192.168.1.1 or 192.168.0.1 in the browser) and change the DNS server:
Primärer DNS: IP-Adresse deines Raspberry Pi (z.B.
192.168.1.100)Primary DNS: Your Raspberry Pi's IP address (e.g.,
192.168.1.100)Sekundärer DNS: Leer lassen oder die gleiche IP eintragen
Secondary DNS: Leave empty or enter the same IP
Tipp
Vergib deinem Raspberry Pi eine statische IP-Adresse, damit sich die DNS-Einstellung im Router nicht bei jedem Neustart ändert. Dies kannst du im Router unter DHCP-Reservierung oder direkt auf dem Pi in der Datei /etc/dhcpcd.conf einstellen.
Assign a static IP address to your Raspberry Pi so the DNS setting in the router doesn't change on every reboot. You can set this in your router under DHCP reservation or directly on the Pi in the file /etc/dhcpcd.conf.
Web-Dashboard aufrufen
Sobald Pi-Hole installiert ist und der Router konfiguriert wurde, kannst du das Dashboard im Browser aufrufen:
Once Pi-Hole is installed and the router is configured, you can access the dashboard in your browser:
http://pi.hole/adminAlternativ kannst du auch die IP-Adresse direkt verwenden:
Alternatively, you can use the IP address directly:
http://192.168.1.100/adminIm Dashboard siehst du:
In the dashboard you can see:
Gesamtzahl der DNS-Anfragen
Total number of DNS queries
Anzahl blockierter Anfragen und Blockrate in Prozent
Number of blocked queries and block rate in percent
Die am häufigsten angefragten und blockierten Domains
Most queried and blocked domains
Zeitlicher Verlauf der Anfragen
Query timeline over time
Blocklisten verwalten
Pi-Hole kommt mit einer Standard-Blockliste, aber du kannst weitere hinzufügen, um noch mehr Werbung und Tracker zu blockieren. Gehe im Dashboard zu Group Management → Adlists und füge neue Listen hinzu.
Pi-Hole comes with a default blocklist, but you can add more to block even more ads and trackers. Go to Group Management → Adlists in the dashboard and add new lists.
Beliebte zusätzliche Blocklisten:
Popular additional blocklists:
Steven Black's Liste:
https://raw.githubusercontent.com/StevenBlack/hosts/master/hostsSteven Black's list:
https://raw.githubusercontent.com/StevenBlack/hosts/master/hostsFirebog Tick-Listen: Kuratierte Sammlung unter
https://firebog.netFirebog Tick Lists: Curated collection at
https://firebog.net
Nachdem du neue Listen hinzugefügt hast, aktualisiere die Gravity-Datenbank:
After adding new lists, update the Gravity database:
pihole -gFalls eine Webseite durch Pi-Hole fälschlicherweise blockiert wird, kannst du sie im Dashboard unter Whitelist freigeben oder per Terminal:
If a website is incorrectly blocked by Pi-Hole, you can whitelist it in the dashboard under Whitelist or via terminal:
pihole -w beispiel-domain.deTipp
Du kannst Pi-Hole jederzeit temporär deaktivieren, z.B. wenn eine Webseite nicht richtig funktioniert. Nutze dafür im Dashboard den Button „Disable" oder im Terminal: pihole disable 5m (deaktiviert Pi-Hole für 5 Minuten).
You can temporarily disable Pi-Hole at any time, e.g., if a website isn't working properly. Use the "Disable" button in the dashboard or in the terminal: pihole disable 5m (disables Pi-Hole for 5 minutes).