For the hosts file, HostsMan is the easiest way I know to manage it.
You have to add the Non Github mirror link from StevenBlackHost site in HostsMan sources to auto update the hosts file.
You could edit the file using the notepad also, but HostsMan it's easy and very useful.
Once installed, if any site doesn't loads (sometimes could happens) just search the Url inside the Hostsfile and comment it:
# url
Windows 10 (x64) | Anniversary Update
Opera Stable 路 Beta 路 Developer
Test profile | Back up Linux 路 Mac 路 Win