I don’t know when it is happened first time, my hosts.txt file constantly modified and detected my Security program(AhnLab Safe Transaction[AST]. this program is necessery for Internet Banking in Korea.)
AST detected hosts file modification, and the IP address which added in hosts.txt
I can confirm it
When I try to modify my hosts file to block some ad domains, including avast’s domain, avast is actively deleting its domains
It is due to avast’s self-defense module
solution: temporarily disable self-defense → modify your hosts → right-click to the hosts file → security tab → edit permissions: deny all Write/modify for all users
I believe it could… I mean, hosts file could be used (e.g. by malware) to block Avast updates etc. - so if Avast domains are inserted, Avast self-defense may removed them.
Avast’s SelfDefense does protect Windows’ hosts file, it only makes sure it is clean.
If any changes are detected in the host file, self defense (if enabled) should remove such lines automatically. This is why your host files change back to default and is intentional behaviour.