Hosts file edit windows

Hosts File Editor для Windows

Оценка:
  • 1
  • 2
  • 3
  • 4
  • 5

4.80 /5 голосов — 5

Лицензия:Бесплатная
Версия:1.5.10 | Сообщить о новой версии
Обновлено:21.09.2020
ОС:Windows 10, 8.1, 8, 7, XP
Интерфейс:Английский
Разработчик:
Категория:Расширения
Загрузок (сегодня/всего):0 / 4 501 | Статистика
Размер:3,24 Мб
СКАЧАТЬ

Hosts File Editor — небольшая бесплатная утилита, которая позволяет легко и просто управлять доступом к веб-сайтам и сетевому трафику путем редактирования host файлов. Пользовательский интерфейс интуитивно понятен и прост в навигации. Присутствует возможность быстро восстановить исходный host файл, если внесенные изменения привели к непредвиденным последствиям.

Программа позволяет очищать кэш DNS, блокировать веб-сайты, управлять сетевым трафиком путем включения/выключения host файлов хостов, блокировать доступ к сети различных приложений, которые потребляют слишком много трафика, отключать некоторые параметры телеметрии для Microsoft, Adobe, Corel, Facebook, Twitter, Instagram, Redtube и пр. Программа не требует инсталляции.

Ключевые особенности программы:

  • Возможность добавления, удаления, редактирования host файлов.
  • Создание резервных копий host файлов.
  • Очистка кэша DNS.
  • Включение / Отключение сервиса Windows Update.
  • Очистка истории обновлений Windows.
  • Включение / Отключение сервиса Windows Firewall.
  • Создание правил для встроенного брандмауэра.
  • Включение / Отключение Windows Defender.
  • Включение / Отключение гибернации.
  • Включение / Отключение Windows Security Center.
  • Включение / Отключение службы защиты пользователей UAC.
  • Очистка временных файлов.
  • Удаление системных точек восстановления.
  • Блокирование заданных приложений и многое другое.

How to Edit the Hosts File in Windows 10

If you’re a regular groovyPost reader, you know that DNS translates domain names like groovyPost.com into IP addresses like 104.24.11.25. But did you know that there’s a file on your Windows 10 PC that can override that? It’s called your hosts file and lets you map specific domain names to an IP address of your choosing. Your HOSTS file only affects your computer, so you can use it to create custom URLs for IP addresses on your network, or you can use it to redirect certain websites.

As you can imagine, editing the HOSTS file can easily break your internet if it’s modified incorrectly or maliciously. So, it’s not particularly easy for a normal user to edit. This is a good thing. But if you want to purposefully change your HOSTS file, here’s how.

Edit Your Windows 10 Host File as an Administrator

The HOSTS file is normally stored in a plain text file in the Windows System folder and can be modified for a variety of use cases. One particular reason I edited the Host file in the past was to block certain websites when I imaged computers for a local high school. This was probably one of the best and easiest ways I could ensure students didn’t load any unauthorized websites such as Facebook or YouTube.

Editing your Windows Hosts file doesn’t have to feel like going down a rabbit hole. In Windows XP and earlier versions, the process was quite easy, just add an exception to your antivirus, open it in Notepad, make your changes then save it.

In Windows 10, if you try to edit your hosts file, you’ll probably be able to open it just fine, but when you go to save it, you’ll get an error:

Here’s how you can edit your hosts file without getting the “You don’t have permission to save in this location. Contact the administrator to obtain permission” error.

Hit the start menu or press the Windows key and start typing Notepad.

Right-click Notepad and choose Run as administrator.

In Notepad, click File then Open… In the File name field, paste the following path in:

Now you’ll be able to edit and save changes to your HOSTS file.

To map a domain, simply add a line based on the examples in the HOSTS file.

Start with the target IP address, then a space, then the domain name. If you want to block a website, redirect it to 127.0.0.1.

Don’t put in the # if you want it to take effect.

Also, remember that www.youtube.com is different than youtube.com.

You may need to restart your computer for the new HOSTS file to take effect.

An Easier Way to Edit the Hosts File in Windows 10

If you found that process a bit cumbersome, there’s a third-party utility you can use to modify your HOSTS file. I found a good one called Hosts File Editor by Scott Lerch. Let’s take a look and see how it works.

Now that you know the basics, here’s how you do it using the app, HOSTS File editor.

Download the 1 MB installer then proceed to set it up. Remember to choose the option just for yourself if you don’t want other users to have access to it.

Launch the app in Start > All apps—this will add the app to the Notification area where can launch the editor anytime you need to.

Hosts File Editor features a clean, easy to use interface. To begin using the program, populate the table with IP Addresses, Host Names, and a comment on the websites you want to manage. It’s not just limited to popular Internet websites, even devices on your home network with an IP address can be managed, so your Xbox, iPad, web cameras, or routers are much easier to block access to if needed.

When you are ready to block a website, check the box for the sites you want to prevent access to, click Save and that’s it.

Another nice ease of use feature is the ability to simply right click the Hosts File Editor in the Notification area then click Disable Hosts File or make a quick edit. No need to go hunting or launch the command line anymore.

There are some other cool features included for power users and network administrators such as:

  • Cut, copy, paste, duplicate, enable, disable and move one or more entries at a time.
  • Filter and sort when there are a large number of host entries
  • Archive and restore various hosts file configurations when switching between environments
  • Automatically ping endpoints to check availability

So, there you have it, a quick and easy way to edit your Hosts File in Windows 10.

Hosts File Editor

Easily edit and manage the hosts file for Windows.

Download

Release binaries can be downloaded from GitHub or CodePlex.

Features

  • Cut, copy, paste, duplicate, enable, disable and move one or more entries at a time
  • Filter and sort when there are a large number of host entries
  • Enable and disable entire hostsfile from application or tray
  • Archive and restore various hostsfile configurations when switching between environments
  • Automatically ping endpoints to check availability


main editor screen with optional archive visible on right


tray icon with context menu

Usage Notes

By default the application closes to the tray. To exit completely you must select Exit from the File menu or tray context menu. Only one instance of the application is allowed at a time. If you try to open it again it will just activate the previously running instance.

When selecting rows to move, delete, copy, or cut be sure to select the entire row using the row header cell. If no entire rows are selected, cut, copy, paste, and delete apply individually to the selected cells.

Using the filter and sort while editing is quirky. The filter and sort are applied once a cell is edited so your cell may change positions or disappear depending on the current sort and filter.

Build

Requires Visual Studio 2017 or newer. To build the installer you must have WiX Toolset 3.7+.

Run build-release.bat or build-debug.bat .

The binaries and setup file will be copied to the bin directory

License

Equin.ApplicationFramework.BindingListView is by Andrew Davey and license terms can be found at http://blw.sourceforge.net/.

Icons are from the Open Icon Library and their license and terms can be found at http://openiconlibrary.sourceforge.net/.

HostsFileEditor is maintained by scottlerch. This page was generated by GitHub Pages.

Где находится файл hosts и как его отредактировать

Изменить файл hosts в windows не так уж и сложно, причин его изменения может быть несколько, например вы хотите добавить туда IP адреса какого либо из своих новых сайтов что бы он открывался до того как обновятся DNS, или наоборот запретить определенным сайтам открываться.

Файл hosts в windows выполняет полезные задачи и он необходим, по умолчанию в данном файле у вас будут примерно такие значения:

# Copyright (c) 1993-2006 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a ‘#’ symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

# localhost name resolution is handle within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost

И так — для того что бы изменить файл hosts вам нужно сделать следующее:

Перейти по адресу: C:\Windows\System32\drivers\etc после чего в папке ETC вы увидите искомый файл HOSTS.

Для того что бы изменить (отредактировать) файл hosts нужно кликнуть по нему правой кнопкой мыши и выбрать Открыть после чего вы убидите это меню:

В списке программ вам нужно выбрать Блокнот и нажать Ок, после чего файл hosts откроется как обычный текстовый документ, чем он по сути и является. После внесения правок вам останется его стандартно сохранить, как будто вы отредактировали документ .txt.

На это все, теперь вы знаете как быстро отредактировать файл hosts.

Подписывайте на канал , задавайте по данной теме любые вопросы и я вам обязательно помогу. Так же можете внести предложение по теме ‘Создание и настройка сайтов, уроки по Windows’ и следующая статья будет об этом.

How to Edit the HOSTS File in Windows

Customize your network settings in Windows 10, 8, or 7

The Windows HOSTS file functions like a local copy of a DNS server, so knowing how to edit it might come in handy if you want to make custom domain redirects, block websites, or remove malicious entries set by malware. That said, you might run into permission errors and other problems when you make changes to this file in some versions of Windows.

The instructions in this article apply to Windows XP, Windows 7, Windows 8, and Windows 10.

How to Edit the Windows HOSTS File

In Windows 7, 8, and 10, you can’t save edits to the HOSTS file unless you open it directly from Notepad or another text editor. To do so:

Open Notepad or another text editor like Notepad++.

In the text editor, select File > Open and open the HOST file location at C:\Windows\System32\drivers\etc\.

Select Text Documents (*txt) in the bottom-right of the Open window and change it to All Files.

This step is required because the HOSTS file doesn’t have the .TXT file extension.

When files appear in the folder, double click hosts to open it.

Edit the HOSTS file and save your changes.

What If I Can’t Save the HOSTS File?

In some versions of Windows, you don’t have permission to save directly to the \etc\ folder. If this is the case, you might see an error like this one when you try to save:

Instead, you must save the file elsewhere like the Documents or Desktop folder. After saving, go to that folder, copy the HOSTS file, and paste it directly into the location where the HOSTS file should be (C:\Windows\System32\drivers\etc\). You’ll be prompted with permission validation and will have to confirm overwriting the file.

If you still have trouble saving the modified HOSTS file, check the file’s attributes to see if it’s been marked read-only. Right-click the file and select Properties to see the attributes.

Another option is to open your text editor program as an administrator so that the permissions are already applied to the editor. Then, saving the HOSTS file over the original can be performed without having to verify your admin credentials.

If you still can’t save to the HOSTS file location, you probably don’t have the correct permissions to be editing files in that folder. You should be logged in under an account that has administrative rights over the HOSTS file, which you can check by right-clicking the file and going to the Security tab.

What Is the HOSTS File Used For?

The HOSTS file is the virtual equivalent of a phone company’s directory assistance. Where directory assistance matches a person’s name to a phone number, the HOSTS file maps domain names to IP addresses.

Entries in the HOSTS file override DNS entries maintained by the ISP. While this hierarchy might come in handy for regular use, like to block ads or certain malicious IP addresses, its functions also make this file a common target of malware.

By modifying it, malware can block access to antivirus updates or force you to a malicious website. Thus, it’s a good idea to check the HOSTS file periodically or at least know how to remove false entries.

A much easier way to block certain domains from your computer is to use a custom DNS service that supports content filtering or blocklists.

Читайте также:  Windows all start up sound
Оцените статью