I know the hosts file is often deemed obsolete by an actual DNS, but what is/are the best way(s) to secure a hosts file (Current Best Practice)?
Example: Would I delete the hosts file, input known "good" addresses, assign specific permissions to the file/make read only, host on separate single machine/server (like DNS), etc.?
For reference location of hosts file(s):
In Windows %path% is for environment variable (since path may not be exact on every system)
- For Windows (
- For *nix/OSX (
- For mobile (Android and iOS are in
/etc/hosts... and for those Windows phones in registry