Providing Free and Editor Tested Software Downloads
< HOME | TUTORIALS | GEEK-CADE| WEB TOOLS | YOUTUBE | NEWSLETTER | DEALS! | FORUMS | >

MajorGeeks.com - We know you're out there, and we're coming to get you.

Software Categories

All In One Tweaks
Android
Antivirus & Malware
Appearance
Back Up
Browsers
CD\DVD\Blu-Ray
Covert Ops
Drivers
Drives (SSD, HDD, USB)
Games
Graphics & Photos
Internet Tools
Linux Distros
MajorGeeks Windows Tweaks
Multimedia
Networking
Office & Productivity
System Tools

Other news

· How To and Tutorials
· Life Hacks and Reviews
· Way Off Base
· MajorGeeks Deals
· News
· Off Base
· Reviews




spread the word

· YouTube
· Facebook
· Instagram
· Twitter
· Pintrest
· RSS/XML Feeds
· News Blur
· Yahoo
· Symbaloo

about

· Top Freeware Picks
· Malware Removal
· Geektionary
· Useful Links
· About Us
· Copyright
· Privacy
· Terms of Service
· How to Uninstall

top downloads

1. GS Auto Clicker
2. Macrium Reflect FREE Edition
3. Smart Defrag
4. Visual C++ Redistributable Runtimes AIO Repack
5. Visual C++ Runtime Installer (All-In-One)
6. Rufus
7. McAfee Removal Tool (MCPR)
8. MusicBee
9. Sergei Strelec's WinPE
10. K-Lite Mega Codec Pack
More >>

top reads

Star How to Disable 1-Click Ordering on Amazon (and Avoid Surprise Charges)

Star How to Fix Shallow Paint Layer Depth in Bambu Studio

Star Aviator Betting Game Secrets: Unlock 97% RTP & Triple Your Wins

Star Windows Recall: What It Is, Why Hackers Will Love It, and How to Stay Safe

Star Star Trek Fleet Command Promo Codes: Redeem Codes for Free Shards, Blueprints And Resources

Star How To Use VLC Media Player to Trim Video Clips

Star What Is the $WinREAgent Folder and Can I Delete It?

Star Swear Your Way to Better Search Results

Star How to Get a Dark Start Menu and Taskbar in Windows 10 & 11

Star Enable, Disable, Manage, Delete or Create a System Restore Point


MajorGeeks.Com » Overview» Tutorials and Video Guides » How to Edit Your HOSTS File to Block Websites in Windows 10

How to Edit Your HOSTS File to Block Websites in Windows 10

By Timothy Tibbetts

on 06/30/2023

When you go to a website, you type in a website name, which is automatically resolved to the site's IP address and loaded. After all, remembering a long series of numbers and periods is a lot harder than remembering Google.com. Knowing this, you can block access to any website by modifying your HOSTS file.

Back in the day, we used to use the HOSTS file to speed up the loading of websites. When you were dialing in at a whopping 14.4 or 28.8 BAUD modem, anything helped. Nowadays, the HOSTS file isn't used much, but you can block websites, something often used by businesses, educational institutions, or anyone who wants to block a website(s).

Editing The HOSTS File Manually

A basic understanding of the HOSTS file will have you blocking websites like a pro in no time.

Open NotePad and click File > Open, click All Files (*.*) in the lower right-corner and open Windows > System32 > drivers > etc > hosts



The HOSTS file explains everything you need to know. Anytime you see a # symbol, that line is ignored when the HOSTS is loaded. In other words, everything after # sign doesn't exist.

To block a website, add 0.0.0.0, followed by the root domain.

To block Facebook, for example, you'd enter 0.0.0.0 www.facebook.com without the # sign in front.



Save the HOSTS file anywhere you like; we use My Documents. Now, copy the HOSTS file to Windows > System32 > drivers > etc > hosts and click Yes when prompted to overwrite.

Reboot and see if it's working correctly.



You can add or remove as many lines as you like. You can also reset the HOSTS file to default easily.

Editing The HOSTS File With a Third-Party App

MajorGeeks has numerous freeware HOSTS editors if you'd prefer a more straightforward method.

The two most popular are HostsMan and HostsXpert.



If your HOSTS file has been damaged or modified, you can use Tweaking.com - Repair Hosts File to reset your HOSTS file to default easily.

Similar:
  • How to Reset Your Hosts File to Default
  • How to Improve Your Wireless Network Performance
  • How-To Reset TCP/IP or Internet Protocol
  • How-To Flush the Windows DNS Cache
  • How-To Reset Winsock on Windows 1087
  • How to Fix Slow Internet on Windows 10
  • How to Reset Network Settings in Windows 10

    comments powered by Disqus




  • © 2000-2025 MajorGeeks.com
    Powered by Contentteller® Business Edition