HostsMan is an excellent piece of freeware for managing your HOSTS file (Windows).
The originator at abdelhadigital.com has been offline for a long time but you can still download it from:
https://www.majorgeeks.com/files/details/hostsman.html
Simple to use, updates itself from reputable online lists of bad hosts and doesn't get in the way.
A good HOSTS file is one of the best protections against malware that you can have.
Mac