My OS is Windows 10. I have entered a few entries in my hosts file. But after some time or after reboot there is a # sign in the beginning of each entry. I did it using Administrator Account also. Note that I am using Bitdefender Internet Security 2016.
2 Answers
Very likely, your antivirus suite is changing your hosts file. An old school attack vector for malware is to redirect DNS lookups by modifying the hosts file, so keeping it intact makes good sense.
But - if you actually need to change it like you do, you need to figure out how to stop your antivirus software from reverting your changes. I personally use Webroot which does something similar.
Google pointed me to this search result which suggests that you may be able to solve your problem by adding the hosts file to an exceptions list in your antivirus suite.
Also, your machine might very well be running Windows Defender alongside your antivirus solution. Windows Defender may also revert changes to the hosts file. See this question for more on that.
- 176