Originally Posted by Ireland
Originally Posted by Marvin
If you just need to stop certain sites loading, you can use /etc/hosts and redirect them to 127.0.0.1. That will load a blank popup.
How do I do the latter?
In the terminal, type:
cp /etc/hosts ~/Desktop
edit it with TextEdit by adding lines at the bottom with 127.0.0.1 first, then a tab and the URL:
Save and then copy it back to /etc/hosts, you need to use sudo:
sudo cp ~/Desktop/hosts /etc/hosts
You can also edit the file directly using a terminal editor like nano, which saves copying things around:
sudo nano /etc/hosts
scroll down to the bottom and write the above line 127.0.0.1...
hit ctrl-o and then return to save it
ctrl-x to close the file
This is a system-wide change so no matter what browser you use, the site is blocked.