Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have this line in my hosts file: x.x.x.x www.google.com

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
1  
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
add comment

1 Answer

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
1  
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
add comment

Your Answer

 
discard

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.