Good point. Sadly that&#x27;s pretty much how all adblockers keep up-to-date (albeit at least with TLS). Though pragmatically even if the update was manual, you still need to place some trust in the site when dealing with files of that size. Granted it would be better if those resources served TLS, but that would only prevent MITM and not the file being dodgy from source (eg site hacked).<p>Thinking a little more about the problem you raised, I guess you could grep it for IPs that aren&#x27;t localhost (ie exit the shell script before writing the new hosts if `grep` returns a zero exit code). Aside that, I&#x27;d genuinely be interested in any ideas you have for keeping the file updated in a secure way (if at all possible).