Every time I come to do this I struggle to remember the location of the Windows 10 hosts file so here goes:
For Windows 10 and 8