Skip to content

Instantly share code, notes, and snippets.

View JosepOli's full-sized avatar

Josep Olivé JosepOli

View GitHub Profile
@JosepOli
JosepOli / whitelist.sh
Created November 8, 2023 15:58
Codigo para añadir enlaces a la whitelist de pihole
#!/bin/bash
# Set the name of your Pi-hole Docker container
PIHOLE_CONTAINER_NAME='pihole-unbound'
# Set the name of your txt file with the domains to whitelist
WHITELIST_FILE_NAME='lista.txt'
# Check if the file exists
if [ ! -f "$WHITELIST_FILE_NAME" ]; then