Home / Linux / How to Disable Amazon Ads in Ubuntu

How to Disable Amazon Ads in Ubuntu

Copy code. Open a terminal (Ctrl-Alt-T).
Paste code, press enter. Type password.
Enjoy your privacy.

gsettings set com.canonical.Unity.Lenses remote-content-search none; if [ "`/usr/bin/lsb_release -rs`" \< '13.10' ]; then sudo apt-get remove -y unity-lens-shopping; else gsettings set com.canonical.Unity.Lenses disabled-scopes "['more_suggestions-amazon.scope', 'more_suggestions-u1ms.scope', 'more_suggestions-populartracks.scope', 'music-musicstore.scope', 'more_suggestions-ebay.scope', 'more_suggestions-ubuntushop.scope', 'more_suggestions-skimlinks.scope']"; fi; echo | sudo tee -a /etc/hosts; echo 127.0.0.1 productsearch.ubuntu.com | sudo tee -a /etc/hosts;

What does this do?

gsettings set com.canonical.Unity.Lenses remote-content-search none Turns off “Remote Search”, so search terms in Dash don’t get sent to the internet
gsettings set com.canonical.Unity.Lenses disabled-scopes "['more_suggestions-amazon.scope', 'more_suggestions-u1ms.scope', 'more_suggestions-populartracks.scope', 'music-musicstore.scope', 'more_suggestions-ebay.scope', 'more_suggestions-ubuntushop.scope', 'more_suggestions-skimlinks.scope']" Turns off other remote Dash scopes, just in case (for Ubuntu 13.10 and newer)
sudo apt-get remove -y unity-lens-shopping Uninstalls Amazon ads built-in to Ubuntu (for Ubuntu 13.04 and older)
echo | sudo tee -a /etc/hosts; echo 127.0.0.1 productsearch.ubuntu.com | sudo tee -a /etc/hosts Blocks connections to Ubuntu’s ad server, just in case

Source  https://fixubuntu.com/

Check Also

Install miniDLNA server on your Zyxel server.

miniDLNA has some advantages over the default media server Twonky. Most important you will be …

Leave a Reply