{"id":106,"date":"2025-03-14T10:28:17","date_gmt":"2025-03-14T09:28:17","guid":{"rendered":"https:\/\/linuxundich.de\/en\/?p=106"},"modified":"2026-10-03T23:04:43","modified_gmt":"2026-10-03T21:04:43","slug":"ad-blocking-by-group-with-pi-hole","status":"publish","type":"post","link":"https:\/\/linuxundich.de\/en\/ad-blocking-by-group-with-pi-hole\/","title":{"rendered":"Ad Blocking by Group with Pi-hole"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I use Pi-hole to block ads and malicious websites for every device on my local network. This matters most for smartphones and smart TVs, where you can&#8217;t dig very deep into the system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Not everyone in the household is thrilled that some ads no longer show up, though, like the ad blocks in Google search. You don&#8217;t have to understand that, but it is what it is.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Luckily, Pi-hole has a solution: with group management, I can give certain devices only basic protection, while the others keep full ad blocking. I&#8217;ll show you how to create an additional group called &#8220;AdblockLite&#8221; and assign specific devices to it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"die-gruppe-adblocklite-anlegen\">Creating the &#8220;AdblockLite&#8221; group<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To create a new group, first log in to the Pi-hole web interface. You can reach it at <code>http:\/\/pi.hole\/admin\/<\/code>. Under <em>Group Management<\/em> \u00bb <em>Groups<\/em> you can add a new group. Enter the name &#8220;AdblockLite&#8221;, for example, and save the change. That lays the foundation for selective ad blocking.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6ac2f73e35009&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6ac2f73e35009\" class=\"wp-block-image wp-lightbox-container\"><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/linuxundich.de\/wp-content\/uploads\/2025\/03\/pihole-gruppe-anlegen_DE-1280x860.webp\" alt=\"Creating the new &quot;AdblockLite&quot; group in the Pi-hole web interface.\" style=\"width:100%\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">Creating the new &#8220;AdblockLite&#8221; group in the Pi-hole web interface<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"werbeblocker-listen-gezielt-zuweisen\">Assigning ad blocking lists selectively<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Now you need to decide which blocklists apply to which groups. Under <em>Lists<\/em> in group management, you&#8217;ll find an overview of all enabled lists. By default they are active for all devices, but this is where you can adjust that.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For the ad blocking lists such as EasyList, remove the assignment to the new &#8220;AdblockLite&#8221; group so that they stay active only for the <em>Default<\/em> group. Security lists like <a href=\"https:\/\/github.com\/tweedge\/emerging-threats-pihole\">Emerging Threats<\/a> should still apply to both groups, so that every device on the network gets at least basic protection.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6ac2f73e3576a&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6ac2f73e3576a\" class=\"wp-block-image wp-lightbox-container\"><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/linuxundich.de\/wp-content\/uploads\/2025\/03\/pihole-liste-gruppe_DE-1280x860.webp\" alt=\"Assigning blocklists selectively to the &quot;AdblockLite&quot; group.\" style=\"width:100%\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">Assigning blocklists selectively to the &#8220;AdblockLite&#8221; group<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"ger\u00e4te-der-adblocklite-gruppe-zuweisen\">Assigning devices to the &#8220;AdblockLite&#8221; group<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For specific devices to benefit from the new configuration, you have to add them to the &#8220;AdblockLite&#8221; group explicitly. To do that, go to the <em>Clients<\/em> section in the Pi-hole interface and add the devices by IP address or hostname. Then assign them to the &#8220;AdblockLite&#8221; group. This makes sure these devices are no longer subject to the full ad blocking rules and only get the basic protection.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6ac2f73e35ce1&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6ac2f73e35ce1\" class=\"wp-block-image wp-lightbox-container\"><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/linuxundich.de\/wp-content\/uploads\/2025\/03\/pihole-clients-gruppe_DE-1280x860.webp\" alt=\"Assigning devices to the &quot;AdblockLite&quot; group.\" style=\"width:100%\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">Assigning devices to the &#8220;AdblockLite&#8221; group<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u00e4nderungen-\u00fcbernehmen-und-testen\">Applying the changes and testing them<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After these adjustments, the new settings need to take effect. To do that, you can restart the DNS resolver in the web interface under <em>Tools<\/em>. Afterwards, the affected devices should only be filtered by the lists enabled for &#8220;AdblockLite&#8221;. You may also have to disconnect the affected machines from the network briefly and reconnect them.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6ac2f73e36295&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6ac2f73e36295\" class=\"wp-block-image wp-lightbox-container\"><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/linuxundich.de\/wp-content\/uploads\/2025\/03\/pihole-shopping1_DE-1280x830.webp\" alt=\"Google search results without ad blocking thanks to the &quot;AdblockLite&quot; group.\" style=\"width:100%\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">Google search results without ad blocking thanks to the &#8220;AdblockLite&#8221; group<\/figcaption><\/figure>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6ac2f73e366f7&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6ac2f73e366f7\" class=\"wp-block-image wp-lightbox-container\"><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/linuxundich.de\/wp-content\/uploads\/2025\/03\/pihole-shopping2_DE-1280x830.webp\" alt=\"A Google search with visible product ads, next to the shop page opened from it.\" style=\"width:100%\"\/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">Online shopping pages with visible ads on &#8220;AdblockLite&#8221; devices<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"fazit\">Conclusion<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks to group management in Pi-hole, you can control ad blocking per device. While some devices keep maximum ad blocking, others get only basic protection. That way everyone in the household can browse the way they like, and nobody has to be annoyed about vanished ads. With this setup, the network stays protected against known threats and gets more flexibility for different needs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>With groups in Pi-hole, you can exempt devices from ad blocking and tailor the ad filter to each one individually.<\/p>\n","protected":false},"author":2,"featured_media":105,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"lui_source_id":42488,"lui_source_hash":"b3a349ac060ed6d49e28baf89760ae4d163a5be9eb8626464d4ea0fe7248b380","lui_source_translated":"2026-10-03","lui_source_reviewed":true,"lui_via_url":"","lui_via_label":"","lui_source_url":"","lui_source_label":"","footnotes":""},"categories":[2],"tags":[],"class_list":["post-106","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gnu-linux"],"_links":{"self":[{"href":"https:\/\/linuxundich.de\/en\/wp-json\/wp\/v2\/posts\/106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxundich.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxundich.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxundich.de\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxundich.de\/en\/wp-json\/wp\/v2\/comments?post=106"}],"version-history":[{"count":1,"href":"https:\/\/linuxundich.de\/en\/wp-json\/wp\/v2\/posts\/106\/revisions"}],"predecessor-version":[{"id":107,"href":"https:\/\/linuxundich.de\/en\/wp-json\/wp\/v2\/posts\/106\/revisions\/107"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxundich.de\/en\/wp-json\/wp\/v2\/media\/105"}],"wp:attachment":[{"href":"https:\/\/linuxundich.de\/en\/wp-json\/wp\/v2\/media?parent=106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxundich.de\/en\/wp-json\/wp\/v2\/categories?post=106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxundich.de\/en\/wp-json\/wp\/v2\/tags?post=106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}