Skip to content

5000+ Great Articles

Best Articles & Essays: Interesting Articles to Read Online

  • How to Fix Window Media Player "Cannot Play This DVD" Error Message Computer Tips
  • What is Reddit Karma (and How to Get It) Cool Websites
  • How to fix Zoom microphone not working on Windows or Mac? Here are some possible ways Help Desk
  • Join Windows 7 HomeGroup from Windows 8

    So now that Windows 8 comes out, you'll be happy to know that you can join your existing Windows 7 homegroup if you want. Windows 7 introduced the W

  • How To Turn OK Google On and Off on Your Android Device How-To
  • Obscure Windows System Files and Why You Should Know About Them Windows 10
  • How to Assign Static IP Address to Your Devices How-To
  • Why Amazon Prime Gaming Is Awesome Gaming

How To Block Websites On Windows Using The Hosts File

Posted on October 7, 2020 By bilal 1983 No Comments on How To Block Websites On Windows Using The Hosts File

Why do you need to know how to block websites? Maybe you want your kids to be safe online? Maybe you want to block distracting sites so you don’t have to procrastinate? It can also be used to block ad-embedded tracking sites.

Whatever the reason, you can simply block websites on Windows 10 using the so-called hosts file.

How To Block Websites On Windows Using The Hosts File

What is a Hosts file?

Have you heard the term DNS (Domain Name System)? It refers to a file system distributed over the Internet that helps translate domain names such as free-online-converters.com into its actual IP address, which turns out to be 13.225.198.106. This will help your computer know which server to talk to when you want to view this site.

How To Block Websites On Windows Using The Hosts File

Prior to DNS in 1984, this was done through a local file on your computer called the hosts file. At the time, computers were not linked to many other computers. At best, we could connect to several dozen. Keeping all this information in a plain old text file was easy. The host file is alive today.

How does the hosts file work?

The hosts file allows a computer to look for other computer names like localhost or domain names like free-online-converters.com and their IP address is next to the name in the file. It’s a bit like how your friends’ names are linked to their phone numbers on your phone. You don’t need to memorize or dial a number, just search for the person’s name.

Before going any further, it’s important to understand that some IP addresses are reserved for local use. This means that they can only be used to point to your computer and devices on your immediate network. This means anything before your message connects to the Internet.

– /

How To Block Websites On Windows Using The Hosts File

For example, the IP address 127.0.0.1 always means the computer you are working on, also known as localhost. Try entering this into your web browser. Most likely, a blank page will open.

Also keep in mind that www.website.com and website.com are not the same thing. For both of them to take us to the same website, both must use the same IP address.

  1. Open Notepad as administrator.

Block Websites Using the Hosts File

  1. Open Notepad as Admin .

  1. Click File> Open.

How To Block Websites On Windows Using The Hosts File

  1. Navigate to C: Windows System32 Drivers etc

How To Block Websites On Windows Using The Hosts File

  1. Once there, change the file type from Text Documents (* .txt) to All Files (*. *).

How To Block Websites On Windows Using The Hosts File

  1. You can now see the hosts file. Open it up.

How To Block Websites On Windows Using The Hosts File

  1. Go to the last line of the page and add your line. Let’s say we block Facebook.

How To Block Websites On Windows Using The Hosts File

How To Block Websites On Windows Using The Hosts File

Enter the localhost IP address 127.0.0.1. Press the tab key and enter facebook.com. Press Enter to move to the next line. Create a second line similar to the one above, but use www.facebook.com instead of facebook.com.

How To Block Websites On Windows Using The Hosts File

Is the website blocked?

Open a command prompt and ping facebook.com, then ping www.facebook.com. You should see that the IP address it is trying to check is 127.0.0.1.

How To Block Websites On Windows Using The Hosts File

Now open your web browser and go to facebook.com. It can still load! Why? Facebook’s real IP address may still be in the browser cache and the browser will use that IP address first. Clear your browser cache and try Facebook again. You should now see an error page.

How To Block Websites On Windows Using The Hosts File

I don’t want to see an error page

You can try redirecting the site to a different IP address, but this won’t work these days. Malicious editing of the hosts file has been a frequent attack by hackers. Web browsers now carefully check for certificates to prevent this. But you can still try.

How To Block Websites On Windows Using The Hosts File

Another way not to see the error page is to install and configure a web server on your computer and point the hosts file to it. Maybe it will display a page that says “Get back to work!” or lists some of your goals as motivation to stay away from social media.

What else can I do with the Hosts file?

You can use the same technique, but paste the URLs of various malware and tracking ads. There is a pre-created hosts file for malware and ad sites that you can copy and paste into your hosts file. At the time of writing, it was last updated in March 2020.

–

Share this:

  • Facebook
  • X
How-To

Post navigation

Previous Post: How To Set Up & Configure TCP/IP Files On Linux (TCP/IP Settings For Linux)
Next Post: How To Deactivate or Delete A Pinterest Account

Related Posts

  • 7 Ways to Clear Memory and Boost RAM on Windows How-To
  • How to Get Tidal Outside Supported Countries  How-To
  • Fix “There was a problem sending a command to the program” Error How-To
  • Fix “Windows was unable to find a certificate to log you on to the network” How-To
  • How to Reduce PNG File Size of a Photo How-To
  • How to Change Notification Sound for Facebook Messenger How-To

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Archives

  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • March 2021
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • December 2019
  • July 2019
  • May 2019
  • April 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018

Categories

  • – 436
  • – 939
  • 1Win AZ Bonuslar, Mobil Tətbiq və Mərc Marketləri – 376
  • 1xbet Azerbaycan,1xbet az merc saytı, en yaxsi bukmeker 1xbet Azerbaycan merc oyunlari, 1xbet az, Azerbaycan merc saytlari – 280
  • AI Tools & Guides
  • Amazon Web Services
  • Apple Watch
  • B1 Bet Aviator: Jogo de Cassino Online Tutorial Passo a Passo 202 – 14
  • blog
  • Calculator
  • Computer Tips
  • Cool Websites
  • Dasinmaz emlak elanlari, ev elanlari, ev alqi satqisi, kiraye evler, torpaq, obyekt, bina, bina ev, mənzil, villa, kreditle satilan evler – 814
  • Featured Posts
  • Free Software Downloads
  • Gadgets
  • Gaming
  • General Software
  • Google Software/Tips
  • Hardware
  • Help Desk
  • How-To
  • iOS
  • iPad
  • iPhone
  • islamic Books
  • Linux
  • Linux Tips
  • Mac OS X
  • macOS
  • MS Office Tips
  • Networking
  • Office Tips
  • OS X
  • Product Reviews
  • Reviews
  • Safari
  • Smart Home
  • Smartphones
  • Software Reviews
  • technology
  • text
  • Tools Review
  • Troubleshooting
  • Tutorial
  • Tutorials
  • Uncategorized
  • Urdu Books PDF
  • Web Site Tips
  • Windows
  • Windows 10
  • Windows 7
  • Windows XP Tips
  • Wordpress
  • бонусы до 250%, официальный сайт в Узбекистане – 69
  • Мостбет Уз Ставки на спорт и казино в букмекерской конторе Mostbet Uz – 527
  • ベラジョンカジノの出金方法一覧【2023年 最新】出金限度額・出金の流れ・出金手数料・出金条件 – 466
  • Male Models With Onlyfans – OnlyFans Sites Online!
  • 1Win Güncel Giriş Adresi 1Win Engelsiz Yeni Giriş
  • 4 Things You Can Do If You Forget Your Wi-Fi Password
  • How To Use DriveDroid to Boot Linux On PC Using Android
  • How do I Find Release Date of Any Google Play App
DMCA.com Protection Status

Recent Posts

  • 12 Most Common Android Problems and Their solutions
  • Male Models With Onlyfans – OnlyFans Sites Online!
  • Access Windows Shared Folder From Android Over Wi-Fi
  • 21SEIKI石巻中里【石巻市】 ベラジョンカジノの入金方法を徹底解説【2023年最新版】
  • ベラジョンカジノで大勝ちを狙えるゲーム10選 4,000万円以上稼いだ強者も!? CASINO JUICE カジノジュース

Recent Comments

  1. Instagram stories not working/loading? Try These 9 Fixes on Can’t update PS5 system software? Try These 10 Fixes
  2. How to Link to a Specific Part Of A Webpage & Share it on Best PDF to Word Converter Online (Free Without Email)
  3. See What’s Taking up Space on Your Hard Drive on 7 best 3D scanning apps for Android and iOS
  4. Make your Devices Read Out Text, With Text to Speech on 9 Best 10K Running Apps for 2023
  5. How to Find your Router’s IP Address on How to Fix Apple CarPlay Not Working? 7 Possible ways
  • How to install Kodi on Amazon Fire Stick and Fire TV Computer Tips
  • What Is Sideloading? Help Desk
  • What Is Microsoft Teams & How Does It Work? Office Tips
  • How to Download Your Personal Data From Google How-To
  • How to Create Gifs From YouTube Videos How-To
  • 2021 Dating Websites and Apps Cool Websites
  • 12 Effective Ways to Stay Anonymous on the Internet How-To
  • Best ti 30xiis scientific calculator 2020

    Best ti 30xiis scientific calculator 2020. 1 - Texas Instruments TI-30XIIS Scientific Calculator Top Reviews 2 - Texas Instruments TI-30

Copyright © 2023 How To Blog.

Powered by PressBook News WordPress theme

Go to mobile version