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 ...