Skip to content

emka.web.id

menulis pengetahuan – merekam peradaban

Menu
  • Home
  • Tutorial
  • Search
Menu

Tutorial Windows: Default And Third-Party Apps To Edit The Windows HOSTS File

Posted on August 8, 2015

Windows 10 came out not a month ago, and as some expected, speculated, or cunningly hoped, things aren’t going quite as planned, at least for the end user. As Microsoft continues to gather data from Windows PCs, individuals are looking for ways to stay in the shadow.

Since it’s not polite, moral, or legal for the matter to hack into the Windows code to remove what’s constantly sending data to Microsoft servers, we’re going to practice some methods to bypass or block this process.

One basic method is to simply unplug the network cable from your PC, or turn off the Wi-Fi adapter, but let’s face it, you’re not going to stay off the grid forever.

Another method is to stick your nose inside the place Windows maps out hostnames to IP addresses, namely the HOSTS file. If this seems complicated or risky, you’ll be happy to know other, safer methods exist. Let’s not beat around the bush and get the facts straight.

Editing the HOSTS file

1 ~ The Windows Way
Windows knows every place you’ve been on the web but this information is kept in raw data, as IP addresses. Needless to say that, unless you’re strictly aware of it, you can’t tell a domain by an IP address, and this is exactly where the HOSTS file comes in handy.

Accessing the HOSTS file:

#1

Simply navigate to this location: C:Windowssystem32driversetc (paste in the file explorer address field) and you should immediately see a plain file named hosts. It’s visible by default, but in case it’s not there, go to the view menu, and tick the box to see Hidden Items.

#2 (use this to be able to edit)

Access the RUN utility by pressing Win + R. Now, write down notepad C:Windowssystem32driversetchosts and this opens up the HOSTS file directly in Notepad.

#3

Hit Win + S to search for Notepad. Once it pops on the results list, right-click it and choose to Run As Administrator. Now, go to the File menu and paste this: C:Windowssystem32driversetchosts in the File Name field.

Important Note!
Don’t forget to create a backup of the HOSTS file before editing anything inside. It only takes a few seconds because copying the file to a safe location is all there is to it. Note that you need administrator privileges to copy the backup to its original location.
OK. I’m here. What now?
It’s time to open the HOSTS file with Notepad. Do this by double-clicking it and choosing Notepad from the list, but this doesn’t apply if you’ve followed #2 or #3 to get here. By default nothing is blocked, but there’s still a lot of text. It’s a small description with an example.

As you learned if you read the text found in the HOSTS file, everything written after # is only a description. To block something, go to a new line below the last # and write down:

code
 
0.0.0.0    www.The-Website-You-Want-To-Block.com  #additional comment

Note: Make sure you add a single website per row, and you don’t place # in front.

Disclaimer: In the video example we blocked Softpedia just to show you how it works. We’re hoping you won’t do the same 🙂

Hint: You can place # after the website you want to block in order to add a comment.

Important Note: You need to edit the HOSTS file through Notepad with administrator privileges in order to save it to the same location. Once you save the new file with your additions, the websites are no longer accessible. To visit them again, simply remove the item from the list.

A practical purpose to this is to block Windows from sending personal data to Microsoft, and you can find more details here on Blocking These Domains Stops Windows 10 from Phoning Home.

2 ~ The Third-Party Way
Because editing the HOSTS file can be used as a basic method to completely block access to a certain domain, developers quickly came out with easier and faster methods of doing this. One suitable example is this nifty application conveniently named HostsMan.

The overall process is rather simple and only takes a few seconds. Go download and install it first.

Step 1: Once the main window pops up, choose to Run HostsMan As Administrator if you haven’t done so by default.

Step 2: Head over to the Hosts menu and choose to Open.

Note: Selecting Open With Text Editor simply puts you in the situation described above, but the simple Open option brings up the HOSTS file content in the application’s own editor.

Step 3: Press the + (plus) button right below the menu bar.

Step 4: Write down the website you want to block and press Add.

Note: You don’t have to press the Add button for every website. To include more websites, simply write them down on individual rows, and just press Add when you’re done.

The application isn’t just an alternative to the first method we’ve gone through. It’s packed with a lot of potential, and you’ll also be able to:

-> Select Online Sources that are predefined with domains known to contain malware and other potential harmful content;

-> Clean up the HOSTS file by finding duplicates, deleting all comments, replacing IPs, or rearranging hosts;

-> Resolve hostnames, Flush DNS Cache, and open the HOSTS folder in Command Prompt or PowerShell for advanced processing;

-> Create multiple backup HOSTS files and restore them with a few mouse clicks. This comes in handy for creating different profiles with specific blocked content.

A few last words

To cut to the chase, editing the HOSTS file is a simple and effective method to keep stuff from leaving or entering your computer. Although it can take some time to create a list, and it’s never going to be complete, alternatives exist to cut some time and effort, and you can even find HOSTS files online with predefined lists of dangerous websites, just so you can travel the information superhighway more comfortably.

Terbaru

  • Inilah Update Terbaru Kasus Video Asusila Pasangan Bandar Batang yang Kini Masuk Tahap Penyidikan
  • Inilah 9 Aplikasi Penghasil Saldo DANA Tercepat dan Terbukti Membayar Tanpa Perlu Deposit
  • Inilah Cara Mengaktifkan Fitur Vertical Tab di Google Chrome Biar Tampilan Browser Kalian Makin Lega dan Rapi
  • Inilah Alasan Kenapa elementary OS Adalah Pilihan Paling Pas Buat Pengguna macOS yang Ingin Coba Linux
  • Inilah Alasan Kenapa Windows Server Kalian Restart Terus Setelah Update April 2026
  • Inilah Alasan Layar TV Kalian Sering Kedip Hitam Saat Main Game dan Cara Mengatasinya
  • Inilah Rekomendasi HP Redmi Note RAM 12 GB dan Koneksi 5G Paling Worth It Buat Kalian
  • Inilah Bocoran Event FF Mei 2026 yang Siap Bikin Dompet Kering, Ada Kuda dan MP40 Cobra!
  • Inilah Kejutan Kompensasi Bug FC Mobile 18 April 2026, Ada Kartu Flashback Gratis yang Bikin Skuad Makin Gahar!
  • Inilah Greenwashing: Trik Nakal Perusahaan Biar Terlihat Ramah Lingkungan Padahal Enggak!
  • Inilah Rekomendasi Parfum Segar untuk Cuaca Panas Agar Kalian Tetap Wangi Seharian Tanpa Bikin Pusing
  • Inilah 12 Aplikasi TV Online Terbaik 2026, Nonton Siaran Langsung Jadi Makin Gampang!
  • Inilah Rekomendasi Kipas Angin Dinding Terbaik Buat Ngatasin Cuaca Panas Tanpa Bikin Kantong Jebol
  • Inilah Cara Sewa Mobil yang Aman dan Nyaman Biar Liburan Kalian Makin Seru Tanpa Drama
  • Inilah Cara Daftar Lowongan 30.000 Manajer Koperasi Desa Merah Putih, Cek Jadwal Lengkapnya Di Sini!
  • Inilah Cara Daftar Lowongan 1.369 Manajer Operasional Kampung Nelayan Merah Putih Jadi Pegawai BUMN!
  • Inilah Perbedaan Skin Tint, Cushion, dan Foundation Biar Kalian Nggak Salah Pilih Base Makeup Natural
  • Inilah Rekomendasi Sepeda Lipat Dewasa Terbaik 2026 yang Paling Praktis untuk Kebutuhan Commuting dan Olahraga Harian
  • Inilah 5 Rekomendasi Sepeda Lipat Listrik Jarak Tempuh Terjauh Biar Mobilitas Kalian Makin Praktis!
  • Inilah 30 Ucapan Hari Kartini 2026 Paling Bermakna untuk Caption Media Sosial dan Pesan Personal yang Inspiratif
  • Inilah Cara Daftar Manajer Koperasi Merah Putih, Peluang Karir BUMN dengan 30.000 Formasi
  • Inilah 5 Rekomendasi Bedak Two Way Cake Anti Oksidasi Supaya Wajah Nggak Terlihat Kusam dan Gelap
  • Inilah Syarat dan Cara Mengurus Surat Sehat Jasmani Rohani untuk Daftar Manajer Kopdes Merah Putih
  • Inilah Alasan Harga Plastik Naik dan 7 Alternatif Kemasan Ramah Lingkungan yang Lebih Hemat buat UMKM
  • Inilah Profil Syekh Ahmad Al Misry dan Rekam Jejaknya yang Sedang Viral di Media Sosial
  • Inilah Alasan HP Nokia Jadul Harganya Masih Selangit dan Banyak Diburu Kolektor di Tahun 2026
  • Inilah HP Samsung A Series Terbaru yang Pakai Layar AMOLED, Mewah Tapi Harganya Terjangkau Banget!
  • Inilah Vivo T5 Pro, HP Midrange dengan Baterai 9.020 mAh yang Siap Comeback ke Indonesia!
  • Inilah Cara Daftar Manajer Koperasi Desa Merah Putih 2026, Ada 30.000 Formasi yang Bisa Kalian Lamar!
  • Inilah Alasan Kenapa Kemkomdigi Ancam Blokir Wikipedia dan Dampak Seriusnya Buat Masa Depan Pendidikan Kita
  • Is it Time to Replace Nano? Discover Fresh, the Terminal Text Editor You Actually Want to Use
  • How to Design a Services Like Google Ads
  • How to Fix 0x800ccc0b Outlook Error: Step-by-Step Guide for Beginners
  • How to Fix NVIDIA App Error on Windows 11: Simple Guide
  • How to Fix Excel Formula Errors: Quick Fixes for #NAME
  • How to Master Claude & NotebookLM to Boost Research and Productivity
  • How to create professional design prototypes and presentations with the power of Claude Design & Figma
  • How to Master Claude Code 2.0: The Ultimate Guide to AI Automation
  • How to Create Consistent AI-Generated Short Films and Assets with Seedance 2.0
  • How to create stunning sci-fi AI movie visuals like a pro With Seedance 2.0
  • Apa itu Spear-Phishing via npm? Ini Pengertian dan Cara Kerjanya yang Makin Licin
  • Apa Itu Predator Spyware? Ini Pengertian dan Kontroversi Penghapusan Sanksinya
  • Mengenal Apa itu TONESHELL: Backdoor Berbahaya dari Kelompok Mustang Panda
  • Siapa itu Kelompok Hacker Silver Fox?
  • Apa itu CVE-2025-52691 SmarterMail? Celah Keamanan Paling Berbahaya Tahun 2025

©2026 emka.web.id | Design: Newspaperly WordPress Theme