I added the wikipedia page because this is not straightforward for windows machines and the procedure is well documented there. But I should have used the english wikipedia!
FYI, it's https://en.wikipedia.org/wiki/Hosts_file