Simplify DNS: Add Hagezi to Pi-hole like a Pro
Are you looking to block adult content and ads on your network? Pi-hole is a popular open-source software that makes this possible by blocking domains based on its advertising groups and adult content lists. Hagezi, on the other hand, is a robust, community-driven tool offering numerous DNS filter lists. Integrating Hagezi with your Pi-hole setup can significantly enhance your blocking capabilities. Let's explore how to add Hagezi to Pi-hole for a more secure and cleaner browsing experience.
Before we delve into the process, ensure you have Pi-hole set up and running on your network. If you haven't, you can follow our comprehensive guide on installing Pi-hole. Now, let's proceed with integrating Hagezi with your Pi-hole instance.
Installing Hagezi
Hagezi is not available in the official Pi-hole package repositories. Therefore, we'll need to install it from the Hagezi GitHub repository.
First, SSH into your Pi-hole device. Then, update your package list and install Git:
``` sudo apt-get update sudo apt-get install git ```Cloning the Hagezi Repository
Next, clone the Hagezi repository onto your Pi-hole device.
Switching to the Hagezi Directory
After cloning, switch to the newly created Hagezi directory.
``` cd hagezi ```Integrating Hagezi with Pi-hole
Pi-hole uses its own lists for blocking adult content and ads. However, integrating Hagezi can provide additional filters, enhancing your blocking capabilities.
Before proceeding, ensure your Pi-hole service is running. You can enable it using the following command:
Adding Hagezi to Pi-hole
Pi-hole allows you to add custom scripts, like Hagezi, to its setup. This ensures the script runs automatically wheneveräv Pi-hole starts.
``` sudo cp hagezi.sh /etc/pihole/ ```Making the Script Executable
Next, make the script executable to run seamlessly with your Pi-hole setup.
``` sudo chmod +x /etc/pihole/hagezi.sh ```Now, the Hagezi script is integrated into your Pi-hole setup. Here's how you can start using the additional filters provided by Hagezi.
Updating Pi-hole with Hagezi Filters
Run the following command to update your Pi-hole with the latest Hagezi filters:
``` hagezi.sh ```Verifying Integration
To confirm that Hagezi has been integrated successfully, check your Pi-hole admin interface. Look for "Hagezi" listed under "Confirmation" on the stats page. If present, your setup is complete, and you're now enjoying enhanced blocking capabilities with Hagezi and Pi-hole.
Congratulations! You've successfully added Hagezi to your Pi-hole setup. By doing so, you've significantly improved your network's ad and adult content blocking capabilities, ensuring a safer and more comfortable browsing experience for you and your users.