GRIDINSOFT HELP CENTER

How to Reset the Windows HOSTS File

The Windows HOSTS file can override normal DNS results. Malware sometimes changes it to block security sites or redirect legitimate domains. Resetting it can restore normal access, but it can also remove intentional entries used by a workplace, development environment, parental-control tool, or local network.

Before you reset the file

  • If this is a managed work computer, ask the administrator whether the HOSTS file contains required entries.
  • Close browsers and save your work.
  • Run Gridinsoft Anti-Malware with administrator rights so it can modify the protected system file.

Reset the HOSTS file in Gridinsoft Anti-Malware

  1. Open Gridinsoft Anti-Malware and select Tools.
  2. Open Reset browser settings.
  3. Under System options, select Hosts file. If you only want to reset HOSTS, clear unrelated browser items before continuing.
  4. Start the reset and approve the Windows administrator prompt if it appears.
  5. Wait for the completion summary. Restart browsers and test the sites that were blocked or redirected.

Hosts file option under System options in Reset browser settings

Skin and build differences can change the location of a control slightly. The reset requires an active license; if the app shows a license-expired message, renew or activate the license before retrying.

Verify the result

  1. Open %WinDir%\System32\drivers\etc.
  2. Open the hosts file in a text editor as an administrator.
  3. Confirm that suspicious mappings are gone. Standard Windows installations normally rely on DNS for localhost resolution, so the sample localhost entries may be comments.
  4. Run a full malware scan. A modified HOSTS file can be a symptom of a broader infection.

If the app cannot reset HOSTS

Use Microsoft's current Windows 10/11 procedure: create a clean extensionless hosts file, rename the existing file to hosts.old, and place the clean file in %WinDir%\System32\drivers\etc. Follow the complete Microsoft Support instructions so the filename and permissions remain correct.

If redirects return after the reset

  • Update Gridinsoft Anti-Malware and run a Full Scan.
  • Check installed browser extensions and proxy settings.
  • Do not repeatedly edit the file while malware is still active.
  • Contact Support with the affected domains and scan results if the entries reappear.
Helpful?

Glossary (A-Z)

Still can’t find an answer?

Send us a ticket and we will get back to you.

Submit a ticket