{"id":173,"date":"2022-07-05T04:16:15","date_gmt":"2022-07-05T09:16:15","guid":{"rendered":"https:\/\/gaunttech.000webhostapp.com\/?p=173"},"modified":"2025-02-23T23:05:14","modified_gmt":"2025-02-24T05:05:14","slug":"pi-hole-set-up","status":"publish","type":"post","link":"https:\/\/chrisrgaunt.com\/?p=173","title":{"rendered":"Pi-hole"},"content":{"rendered":"\n<p>This project was particularly fun for me because I had a <strong>Raspberry Pi<\/strong> just lying around, and I wanted to put it to good use. The solution I found was <strong>Pi-hole<\/strong>, an efficient, open-source software that acts as a <strong>network-wide ad blocker<\/strong>. This tool can filter out unwanted advertisements and trackers across your entire network, without requiring any additional configuration on individual devices.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>What is Pi-hole?<\/strong><\/h3>\n\n\n\n<p>Pi-hole is a network-wide ad blocker that operates as a <strong>DNS sinkhole<\/strong>. When a device on your network tries to access an ad server or tracking domain, Pi-hole intercepts the DNS query and responds with an invalid IP address, preventing the ad or tracker from being loaded. This not only blocks ads on websites but also prevents intrusive tracking on apps, reducing the amount of data collected by third-party trackers.<\/p>\n\n\n\n<p>Unlike browser-based ad-blockers, Pi-hole works across your entire network, meaning every device connected to your network will benefit from ad-blocking. It works by acting as a local DNS server, meaning that instead of your devices sending DNS requests to external servers, they send them to Pi-hole, which then determines whether the domain is allowed or blocked.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Why Use Pi-hole?<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Network-Wide Protection:<\/strong> You don\u2019t need to install separate ad-blocking software on each device. Pi-hole blocks ads for all devices connected to your home network (including smartphones, laptops, smart TVs, and IoT devices).<\/li>\n\n\n\n<li><strong>Improved Speed and Reduced Bandwidth Usage:<\/strong> By blocking ads before they are downloaded, Pi-hole can speed up browsing and reduce unnecessary bandwidth consumption.<\/li>\n\n\n\n<li><strong>Privacy Protection:<\/strong> By blocking tracking domains, Pi-hole helps reduce the amount of personal information that is sent to ad companies and other third-party trackers.<\/li>\n\n\n\n<li><strong>Easy Management:<\/strong> Pi-hole comes with a web interface that allows you to monitor queries, review logs, and add custom blacklists or whitelists to control what is being blocked.<\/li>\n\n\n\n<li><strong>Low Cost and Efficiency:<\/strong> Running Pi-hole on a Raspberry Pi is highly cost-effective, and the performance is excellent given the minimal resource requirements of the Raspberry Pi.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>How to Set Up Pi-hole on a Raspberry Pi<\/strong><\/h3>\n\n\n\n<p>Pi-hole step: <a href=\"https:\/\/www.youtube.com\/watch?v=KBXTnrD_Zs4&amp;ab_channel=LinusTechTips\" target=\"_blank\" rel=\"noopener\" title=\"Linus tech tips Step by step video\">Linus tech tips Step-by-step video<\/a><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Prepare Your Raspberry Pi:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Ensure your Raspberry Pi is set up with a clean <strong>Raspberry Pi OS<\/strong> installation (either via <strong>Raspberry Pi Imager<\/strong> or a downloaded image).<\/li>\n\n\n\n<li>Connect the Raspberry Pi to your network via Ethernet or Wi-Fi.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Install Pi-hole:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Open a terminal on your Raspberry Pi and run the following command to start the Pi-hole installation script:<code>curl -sSL https:\/\/install.pi-hole.net | bash<\/code><\/li>\n\n\n\n<li>The script will guide you through the installation, where you can choose options such as the upstream DNS provider (e.g., Google, OpenDNS, Cloudflare) and configure Pi-hole to run as your network\u2019s DNS server.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Configure Your Router or Devices:<\/strong>\n<ul class=\"wp-block-list\">\n<li>To use Pi-hole for all devices on your network, log into your router\u2019s web interface and set the router\u2019s DNS to the IP address of your Raspberry Pi.<\/li>\n\n\n\n<li>Alternatively, you can manually configure devices to use Pi-hole by setting their DNS server to the Raspberry Pi\u2019s IP address.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Web Interface Setup:<\/strong>\n<ul class=\"wp-block-list\">\n<li>After the installation, you can access the Pi-hole admin dashboard via your browser at <code>http:\/\/&lt;Pi-hole_IP_address>\/admin<\/code>. From here, you can monitor statistics, block\/allow domains, and customize your ad-blocking settings.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Maintain Pi-hole:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Pi-hole is easy to maintain through its web interface, where you can:\n<ul class=\"wp-block-list\">\n<li>Review query logs to see which domains are being blocked.<\/li>\n\n\n\n<li>Add custom blocklists and whitelist domains.<\/li>\n\n\n\n<li>Update Pi-hole\u2019s ad-blocking database regularly to ensure you\u2019re blocking the latest threats and ads.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Additional Resources for Pi-hole<\/strong><\/h3>\n\n\n\n<p><strong>Pi-hole Community Forum:<\/strong><br><a>https:\/\/discourse.pi-hole.net<\/a><br>The Pi-hole community forum is a great place to find answers to questions, share configurations, and troubleshoot issues with fellow Pi-hole users.<\/p>\n\n\n\n<p><strong>Official Pi-hole Website:<\/strong><br><a href=\"https:\/\/pi-hole.net\">https:\/\/pi-hole.net<\/a><br>Here you can find the official Pi-hole documentation, installation guides, and additional information about the tool.<\/p>\n\n\n\n<p><strong>Pi-hole GitHub Repository:<\/strong><br><a href=\"https:\/\/github.com\/pi-hole\/pi-hole\">https:\/\/github.com\/pi-hole\/pi-hole<\/a><br>The source code for Pi-hole is hosted here, and it\u2019s a great place to check for updates and report issues.<\/p>\n\n\n\n<p><strong>Pi-hole Documentation:<\/strong><br><a>https:\/\/docs.pi-hole.net<\/a><br>This site provides detailed installation and configuration guides, as well as troubleshooting tips.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading has-text-align-center\">Links<\/h2>\n\n\n\n<p>Raspberry pi kit: <a href=\"https:\/\/www.amazon.com\/CanaKit-Raspberry-Pi-Extreme-Kit\/dp\/B09W7P91SP\/ref=sr_1_6?crid=2VB28VQ28MNK1&amp;keywords=rasberry+pi&amp;qid=1658028443&amp;sprefix=rasberry+pi+%2Caps%2C206&amp;sr=8-6&amp;ufe=app_do%3Aamzn1.fos.18ed3cb5-28d5-4975-8bc7-93deae8f9840\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.amazon.com\/CanaKit-Raspberry-Pi-Extreme-Kit\/dp\/B09W7P91SP\/ref=sr_1_6?crid=2VB28VQ28MNK1&amp;keywords=rasberry+pi&amp;qid=1658028443&amp;sprefix=rasberry+pi+%2Caps%2C206&amp;sr=8-6&amp;ufe=app_do%3Aamzn1.fos.18ed3cb5-28d5-4975-8bc7-93deae8f9840<\/a><\/p>\n\n\n\n<p>Pi-hole: <a href=\"https:\/\/pi-hole.net\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/pi-hole.net\/<\/a><\/p>\n\n\n\n<div class=\"wp-block-group is-content-justification-center is-nowrap is-layout-flex wp-container-core-group-is-layout-1 wp-block-group-is-layout-flex\">\n<p class=\"has-white-color has-text-color\">SHARE ON<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fchrisrgaunt.com%2F%3Fp%3D173\" target=\"_blank\" rel=\"noreferrer noopener\">Facebook<\/a><\/div>\n\n\n\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/www.linkedin.com\/sharing\/share-offsite\/?url=https%3A%2F%2Fchrisrgaunt.com%2F%3Fp%3D173\" target=\"_blank\" rel=\"noreferrer noopener\">Linkedin<\/a><\/div>\n\n\n\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/twitter.com\/intent\/tweet?text=https%3A%2F%2Fchrisrgaunt.com%2F%3Fp%3D173\" target=\"_blank\" rel=\"noreferrer noopener\">Twitter<\/a><\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This project was particularly fun for me because I had a Raspberry Pi just lying around, and I wanted to<\/p>\n<p><a href=\"https:\/\/chrisrgaunt.com\/?p=173\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\">Pi-hole<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":782,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[10],"tags":[],"class_list":["post-173","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-projects"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/chrisrgaunt.com\/index.php?rest_route=\/wp\/v2\/posts\/173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chrisrgaunt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chrisrgaunt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chrisrgaunt.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chrisrgaunt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=173"}],"version-history":[{"count":1,"href":"https:\/\/chrisrgaunt.com\/index.php?rest_route=\/wp\/v2\/posts\/173\/revisions"}],"predecessor-version":[{"id":3221,"href":"https:\/\/chrisrgaunt.com\/index.php?rest_route=\/wp\/v2\/posts\/173\/revisions\/3221"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chrisrgaunt.com\/index.php?rest_route=\/wp\/v2\/media\/782"}],"wp:attachment":[{"href":"https:\/\/chrisrgaunt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chrisrgaunt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chrisrgaunt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}