Block and permanently shut down the Pi-Hole V6 web server interface.

To permanently disable the Pi-Hole web interface, enter the following command. To keep DNS running without worry, I need to disable only local websites:

sudo pihole-FTL --config webserver.port ''

sudo systemctl restart pihole-FTL

To restore the Pi-Hole web interface after it has been shut down, enter:

sudo pihole-FTL --config webserver.port 80

sudo systemctl restart pihole-FTL

There are two other methods: block ports 80 and 443 and add them to the firewall using the UFW command on Ubuntu to completely and permanently disable the Pi-Hole web interface.

If the UFW order has an "allow" rule set, change the order to "deny" to block the local port.

Use the UFW port to permanently disable the Pi-Hole web interface.

http: sudo ufw deny 80

https: sudo ufw deny 443

In the UFW command, which blocks the Local Domain Name System (DNS) port 53, set the rule to "allow".

DNS: sudo ufw allow 53

If you're using FTP (aaPanel) and DNS (Pi-Hole) at home, having a home server would be more beneficial. To mitigate risk, it's recommended to block all unused local ports. Using a Mini PC as a home server with FTP (aaPanel) and DNS (Pi-Hole) to protect your data during transfer will be risk-free.

Mini PCs converted to home servers: UFW should be installed to block local ports to maintain secure data transfer and Pi-Hole DNS ad blocking.


Comments

Popular posts from this blog

How to Clone from Old Router PPPoE (Even Don't Remember PPPoE or Hide Password) to Retrieve PPPoE Settings from Old Router Using TP-Link Wi-Fi 6 Router to Transfer to New Router (Bought) and Work Normally 2025? | Hackers Help to Smuggle Internet