• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Edit the hosts file in Windows 7

By Abhishek Ghosh November 30, 2010 9:59 pm Updated on October 17, 2014

Edit the hosts file in Windows 7

Advertisement

One of the functions of the Hosts file is to block or allow Internet pages as you need.

The hosts file from Windows XP to Windows 7 is on this path:

C: > Windows > System32 > drivers > etc

Advertisement

---

To modify this file in previous versions of Windows 7 is only access to this location, open the file, modify and save changes.

But this does not work in Windows 7, trying to save the changes makes the system to display a window where it says you can not save in that directory which suggests to keep a copy in My Documents. To change this follow the steps:

1) You must enable show all hidden files and folders.

2) Open the “Notepad” and do not open with double click! Right click and click Run as administrator:

hosts file in Windows 7-2

The system may prompt you to allow execution; you should click yes.

3) Once open Notepad go to File -> Open:

hosts file in Windows 7-3You may access the hosts file along your path: C: > WINDOWS > system32 > drivers > etc

Upon reaching the etc. folder; you will not able to see the hosts file. To get the access it must selected to show all files from the drop down menu as shown in the image:

hosts file in Windows 7-4

4) Open the hosts file. Once you opened it, you can edit the hosts file according to our needs. The picture shows an example of how to block a page. Write 127.0.0.1 ; domain name of the page with www and another same line the without www.

hosts file in Windows 7-1

5) Save the changes and close Notepad.

Note:

1. Always use both with www. extension and non www. version of the website which you want to block.

2. It is very useful for parents, system administrators to disallow certain website(s) to be accessed from that particular computer.

Tagged With collectqhi , how to edit host file windows 7 , how to edit hosts file on windows 7
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Edit the hosts file in Windows 7

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Windows 7 Right Click Menu Tips,Tricks and Tutorials : Index

    Windows 7 Right Click Menu Tips,Tricks and Tutorials those has been published within The Customize Windows till date is listed here along with description.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Edit HOSTS file in Windows 7 from right click context menu

    You can easily edit HOSTS file in Windows 7 from right click context menu using this simple registry trick.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

vpsdime

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Cloud-Powered Play: How Streaming Tech is Reshaping Online GamesSeptember 3, 2025
  • How to Use Transcribed Texts for MarketingAugust 14, 2025
  • nRF7002 DK vs ESP32 – A Technical Comparison for Wireless IoT DesignJune 18, 2025
  • Principles of Non-Invasive Blood Glucose Measurement By Near Infrared (NIR)June 11, 2025
  • Continuous Non-Invasive Blood Glucose Measurements: Present Situation (May 2025)May 23, 2025
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2026 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy