mirror of
https://gitlab.com/robocopAlpha/pihole_lists.git
synced 2026-05-18 02:42:25 -07:00
13 lines
512 B
Bash
Executable file
13 lines
512 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Facebook & Whatsapp
|
|
|
|
WRK_DIR=/home/dietpi/pihole_lists
|
|
cd ${WRK_DIR}/Mirrors
|
|
|
|
rg -FINv "whatsapp" ${WRK_DIR}/Mirrors/facebook_block.txt >| ${WRK_DIR}/Mirrors/tmp.txt
|
|
rg -FIN "whatsapp" ${WRK_DIR}/Mirrors/facebook_block.txt | rg -FIN "facebook" >> ${WRK_DIR}/Mirrors/tmp.txt
|
|
rm -f ${WRK_DIR}/Mirrors/facebook_block.txt
|
|
sort -u ${WRK_DIR}/Mirrors/tmp.txt | uniq > ${WRK_DIR}/facebook_block.txt
|
|
rm -f ${WRK_DIR}/Mirrors/tmp.txt
|
|
echo -e " \n $(wc -l ${WRK_DIR}/facebook_block.txt) domains\n"
|
|
|