I would say both actually (Belt and suspenders protection) the firewall blocks the site from SENDING stuff to you. the hosts file prevents your computer from REQUESTING stuff by re-directing to local-host. (So you get a 404) But the firewall blocks the remote from sending to you even if you did not request.
Home was where I park it. but alas the.
2005 Damon Intruder 377 Alas declared a total loss
after a semi "nicked" it. Still have the radios
Kenwood TS-2000, ICOM ID-5100, ID-51A+2, ID-880 REF030C most times