How to Block the Daily Mail website so you never have to look at it.
I hate it when I accidentally end up on The Daily Mail website. It offends my eyes and thoughts.
I’ve been meaning to block it for a while now. You can too with this guide…
This is how to block dailymail.co.uk on OS X by editing the hosts file, you can do the same thing on windows very easily if you have admin rights.
We are going to edit the hosts file to do this. First you will need to open a terminal window.
Press command+space to do a spotlight search. Type Terminal and press enter.
Once at the terminal type:
sudo nano /private/etc/hosts
You will be asked to enter your password, type it and press enter.
You will then be prompted with the following screen which is your hosts file.
Use the arrows on your keyboard to navigate to a new line and type the following as above:
This will redirectÂ any requests to dailymail.co.uk back to your your localhost (127.0.0.1).
control + X
to save changes and Enter to write the files.
The changes might not take effect straight away as you may have to flush your DNS cache. To do this type the following at the terminal prompt.
sudo discoveryutil udnsflushcaches
The flush dns command varies in different versions of OS X so you may have to do a quick google for your version.
Then browse to dailymail.co.uk and hopefully it won’t work!
Any problems, let me know in the comments.