-bash: syntax error near unexpected token `('

block liste wird nicht akzeptiert ,

pihole -b https://github.com/Cauchon/NSABlocklist-pi-hole-edition/blob/62bf1e47dde981f37ebe765ac2047f72dd569609/HOSTS%20(including%20excessive%20GOV%20URLs)
-bash: syntax error near unexpected token `('

Ich bin für jeden hinweiß dankbar!

MfG b4sh

Hallo b4sh,

der Fehler sagt es doch eigentlich recht deutlich

"bash: syntax error near unexpected token ("

Pihole kommt mit dem ( nicht klar. Du kannst den Maintainer der Liste bitte, das zu entfernen oder (da die Liste eh seit 2 Jahren nicht mehr geupdated wurde und es daher wahrscheinlich ist, dass sie es auch in Zukunft nicht mehr wird) einfach lokal auf den Pi speichern, umbenennen und dann mit file:///Speicherort/neuer_Dateiname einbinden

You are accessing the html version of the list, not the text version. The correct URL is:

https://raw.githubusercontent.com/Cauchon/NSABlocklist-pi-hole-edition/62bf1e47dde981f37ebe765ac2047f72dd569609/HOSTS%20(including%20excessive%20GOV%20URLs)

Edit - block lists such as this are added via the Web Admin GUI > Settings > Blocklists

pihole -b is for adding a certain domain to the blacklist, not to add an adlist (as you tried) with many domains in it.

You have to add the URL @jfb provided to your /etc/pihole/adlists.list (or via Web GUI) and run pihole -g

1 Like

Moin Moin,
es funktioniert einfach nicht ,auch nicht über grafische oberfläche und auch nicht über konsole,

sudo pihole -b https://raw.githubusercontent.com/Cauchon/NSABlocklist-pi-hole-edition/62bf1e47dde981f37ebe765ac2047f72dd569609/HOSTS%20(including%20excessive%20GOV%20URLs)
-bash: syntax error near unexpected token `('

echt komisch :crazy_face:

MfG b4sh

Pi-hole Version vDev (release/v5.0, v4.3.5-462-g0f20470a) Web Interface Version vDev (release/v5.0, v4.3.2-464-gade3ef5b) FTL Version vDev (release/v5.0, vDev-853261b)

Ja, es funktioniert nicht, weil pihole nicht mit den ( und ) klar kommt.
Ich bin mir nicht mal sicher, ob man die Klammern so in URLs verwenden darf....

Wenn du diese Liste unbedingt nutzen willst, kannst du die Klammern durch URL encoding ersetzen.

Das funktioniert bei mir mit

https://raw.githubusercontent.com/Cauchon/NSABlocklist-pi-hole-edition/62bf1e47dde981f37ebe765ac2047f72dd569609/HOSTS%20%28including%20excessive%20GOV%20URLs%29

TipTop :grinning: es funktioniert ,

Vielen Dank an euch alle für die Hilfe :carlton:

MfG b4sh

It's not Pi-hole but bash. bash considers ( to be a special character. You need to have them in "s to bypass bash trying to interpret them as commands.

dschaper@nanopineo:~$ echo https://github.com/Cauchon/NSABlocklist-pi-hole-edition/blob/62bf1e47dde981f37ebe765ac2047f72dd569609/HOSTS%20(i
ncluding%20excessive%20GOV%20URLs)
-bash: syntax error near unexpected token `('

dschaper@nanopineo:~$ echo "https://github.com/Cauchon/NSABlocklist-pi-hole-edition/blob/62bf1e47dde981f37ebe765ac2047f72dd569609/HOSTS%20(including%20excessive%20GOV%20URLs)"
https://github.com/Cauchon/NSABlocklist-pi-hole-edition/blob/62bf1e47dde981f37ebe765ac2047f72dd569609/HOSTS%20(including%20excessive%20GOV%20URLs)
1 Like