The file is located at:
windows/system32/drivers/etc/host
Mac hosts file:
/private/etc/hosts
Follow me on X