Reputation: 11
My "hosts" file (C:\Windows\System32\drivers\etc\hosts) change itself automaticaly allways. The file include my project artifactory ip adress and its allways getting block with comment or the whole page delete and became blank.
It's happend randomly (between 4~10 times in a day of work)
I realy want to fix it and stop the auto changing.
thanks.
Upvotes: -1
Views: 1416
Reputation: 3716
I installed ProcessMonitor
application found on
https://learn.microsoft.com/en-us/sysinternals/downloads/procmon
I monitored C:\Windows\System32\drivers\etc\hosts
file in adding a Path
filter in cliking on Filter
main menu and Filter...
submenu.
In Dialog box displayed, I added a Path
monitoring ...
Then in Filter
main menu, I activate Drop Filtered Events
to limit logging of events ... and I wait between 10 an 20 minutes to discover the responsible.
Its is, on my PC, Bitdefender (antivirus) application !
I correct this behavior (prefixing hostname with # in host file) in executing following instructions https://community.bitdefender.com/en/discussion/90772/hosts-file-access
Upvotes: 0
Reputation: 124
You can use the Process Monitor tool to determine which process is changing the file.
Upvotes: 1