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