View Single Post
Old 07-06-2023, 10:28 AM   #90
LostOnTheLine
Connoisseur
LostOnTheLine ought to be getting tired of karma fortunes by now.LostOnTheLine ought to be getting tired of karma fortunes by now.LostOnTheLine ought to be getting tired of karma fortunes by now.LostOnTheLine ought to be getting tired of karma fortunes by now.LostOnTheLine ought to be getting tired of karma fortunes by now.LostOnTheLine ought to be getting tired of karma fortunes by now.LostOnTheLine ought to be getting tired of karma fortunes by now.LostOnTheLine ought to be getting tired of karma fortunes by now.LostOnTheLine ought to be getting tired of karma fortunes by now.LostOnTheLine ought to be getting tired of karma fortunes by now.LostOnTheLine ought to be getting tired of karma fortunes by now.
 
Posts: 72
Karma: 800000
Join Date: Jun 2021
Device: Kindle Paperwhite (PW1|PW3|PW4), Kindle Voyage
Quote:
Originally Posted by trcm View Post
Can't remember exactly, but this is what I used in past to generate the list of things to block on the Kindle itself.

Code:
# Block unwanted domains with the /etc/hosts file
echo ".d" | sqlite3 /opt/var/local/reg/ServerConfig.db \
    | awk -F, '/VALUES/ {gsub(/\047/,""); gsub(/\;\)/,""); print $3}' \
    | grep -o '.*\..*\..*' \
    | grep -Ev 'com.lab126|DOMAIN|WEBSITE|THUMB|openid.assoc_handle' \
    | sed 's/);//;
            s/^http:\/\///;
            s/^https:\/\///;
            s/\/.*//;s/:.*//;
            s/|/\n/g;
            /^\./d;
            /^\[/d;
            /^$/d' \
    | sort -u \
    | while read -r; do
         echo "Blocking host : $REPLY"
         grep -q "$REPLY" /etc/hosts || echo "127.0.0.1 $REPLY" >> /etc/hosts
     done
From an old backup, I think it's this one in particular to block updates, but it was a long time ago....
Code:
127.0.0.1 firs-ta-g7g.amazon.com
Thanks. Was it just one that needed to be blocked? & does anyone know if the reason 5.12+ sneaks updates is because they changed that?
LostOnTheLine is offline   Reply With Quote