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 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 back to your your localhost (

Next press

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 and hopefully it won’t work!

Any problems, let me know in the comments.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.