Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have this line in my hosts file: x.x.x.x

For many times, I saw this line missing from my hosts file while everything else in it stayed untouched. in this case I would add this line back to my hosts.

How can I monitor my hosts file to find out which program edited it secretly? PS. I am the only user of my conputer. nobody else ever touched it.

share|improve this question
Do you have an anti-virus program? – SLaks Nov 1 '12 at 2:39
Which version of Windows? – Moab Nov 1 '12 at 2:56
I have avast anti-virus. And I'm using win7 x64 ultimate. – David Dai Nov 1 '12 at 3:39
up vote 1 down vote accepted

You could run ProcMon and leave it logging, but you'd have to leave it logging long enough to catch whatever is doing it in the act, then play around with the filter on the log to find what accessed hosts.

share|improve this answer
Set to filter on WriteFile operation and Path to the hosts file. – tvStatic Nov 1 '12 at 2:51
@tvStatic Thanks for the tips. – David Dai Nov 1 '12 at 3:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.