• Home
  • About 404TS
  • Contact

404 Tech Support

Where IT Help is Found

  • Articles
    • Code
    • Entertainment
    • Going Green
    • Hardware, Gadgets, and Products
    • Management
    • Network
    • News
    • Operating Systems
    • Security and Privacy
    • Software
    • System Administration
    • Talking Points
    • Tech Solutions
    • Web
    • Webmaster
  • Reviews
  • Media
    • Infographics
    • Videos
  • Tech Events
  • Tools
    • How do I find my IP address?
    • Browser and plugin tests
  • Get a Technical Consultation
You are here: Home / Articles / Operating Systems / How To Edit The HOSTS File In Vista or Windows 7

How To Edit The HOSTS File In Vista or Windows 7

2011-06-03 by Jason

The HOSTS file is where your computer goes first to translate a domain (404TechSupport.com) to an IP address (96.30.24.98). It’s mostly been replaced by the use of DNS because it would be impossible to keep up with all the new websites created or server changes that occur daily. Despite that, it still has its uses for correcting something locally or filtering sites. Malware might also find its useful to redirect web traffic to a different server. For that reason, Windows has tightened up security on the file and editing the file requires a little trick.

If you were to just go to C:WindowsSystem32driversetc and open the hosts file in Notepad, you wouldn’t be able to save your changes.

Instead, you need to go under the Start Menu and either type Notepad or find its listing. Then right-click on Notepad and choose to ‘Run as administrator’. A prompt should come up and you can give it permission.

Once Notepad open go to File, Open (change file type in the dialog box from .txt to all files) and browse to your HOSTS file. You’ll then be able to make and save changes as needed.

Upon restarting the computer, you may receive a message from Windows Defender noticing a difference to the HOSTS file. Since the HOSTS file might have been changed by malware, it assumes you didn’t do it. You can disinfect it to revert the HOSTS file back to the default file or tell it to ignore the SettingsModifier:Win32/PossibleHostsFileHijack. However, if you didn’t change the HOSTS file – you probably want to disinfect and clean the system.

TL;DR – Run Notepad as an Administrator (even if you are using an administrator account), open the HOSTS file, and save your changes. Confirmed by a Microsoft Support KB article.

Filed Under: Operating Systems, System Administration

Trending

  • HackerOne, a platform for bug bounty programs
    In Security and Privacy
  • DVI-A, DVI-D, DVI-I – pinning down the differences
    In Hardware, Gadgets, and Products
  • Data storage since the 1950s [infographic]
    In Infographics

Latest Media Posts

Find Out Where To Download SNES ROMs

Find Out Where To Download SNES ROMs

Multifunctional Video Conversion Tools – Wondershare Video Converter

Multifunctional Video Conversion Tools – Wondershare Video Converter

  • Popular
  • Latest
  • Today Week Month All
  • Access to the resource [servershare] has been disallowed Access to the resource [servershare] has been disallowed
  • Read the Event Logs on Windows Server Core Read the Event Logs on Windows Server Core
  • Increase IIS Private Memory Limit to improve WSUS availability Increase IIS Private Memory Limit to improve WSUS availability
  • How to ‘Unblock’ multiple files at a time with PowerShell How to 'Unblock' multiple files at a time with PowerShell
  • Setup your DFS namespace with DNS for compatibility in a mixed environment Setup your DFS namespace with DNS for compatibility in a mixed environment
  • How Virtual Reality Supports Mental Health Therapy How Virtual Reality Supports Mental Health Therapy
  • Key Strategies of Successful Coin Listing on Exchange Key Strategies of Successful Coin Listing on Exchange
  • Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting
  • Making Distributed Software Development Work: Strategies and Best Practices for Managing Remote Teams Making Distributed Software Development Work: Strategies and Best Practices for Managing Remote Teams
  • customer contactless payment for drink with mobile phon at cafe counter bar,seller coffee shop accept payment by mobile.new normal lifestyle concept The Latest Innovations In Payment Technology
Ajax spinner

Elevator Pitch

404 Tech Support documents solutions to IT problems, shares worthwhile software and websites, and reviews hardware, consumer electronics, and technology-related books.

Subscribe to 404TS articles by email.

Recent Posts

  • How Virtual Reality Supports Mental Health Therapy
  • Key Strategies of Successful Coin Listing on Exchange
  • Keeping Your Mac Healthy: A Comprehensive Guide to Maintenance and Troubleshooting

Search

FTC Disclaimer

404TechSupport is an Amazon.com affiliate; when you click on an Amazon link from 404TS, the site gets a cut of the proceeds from whatever you buy. This site also uses Skimlinks for smart monetization of other affiliate links.
Use of this site requires displaying and viewing ads as they are presented.

Copyright © 2025 · Magazine Pro Theme on Genesis Framework · WordPress · Log in