You are here

Removing System File Protection From A Hosts File

This article explains how to remove system file protection from hosts file on your computer. This may be required after a virus has infected a computer


  1. Browse to the hosts file (C:\windows\system32\drivers\etc)
  2. Right click on the hosts file, go into security and take ownership
  3. Re-open the security options and grant administrators full control
  4. Open a command prompt and change to the location of the hosts file (cd /d C:\windows\system32\drivers\etc)
  5. Type the following command into the command prompt to enable the hosts file to be edited again attrib -r -a -h -s hosts