WANT TO BLOCK all usersof a Windows PC from opening certain websites, regardless of the browser they use or the time of day? You need only make a few simple additions to the Windows hosts file. This method is straight forward and free, and it doesn't require you to download or install any additional software. It's an effective way to prevent users of all ages from accessing content you don't want them to see.
1. Open Windows Explorer and navigate to C:\Windows\System32\drivers\etc. If Windows is not installed on C: on your PC, substitute the appropriate drive letter.
2. Double click hosts, and select Notepad at Windows’ prompt to choose a program. If you don’t get the prompt, or if the ‘hosts' file opens in another program, open Notepad (Start/All Programs/Accessories/Notepad), and then make your way to the 'hosts’ file by clicking File/Open from within Notepad.
3. Place the cursor at the end of the last line, which will say something such as ‘127.0.0.1 localhost’ or ‘::1 localhost’. Press <Enter> to create a new line.
4. Type 127.0.0.1. tap the spacebar once, and then type the address of a web site that you want to block. For example, to block all traffic from YouTube, type 127.0.0.1 www.youtube.com on this line.
5. Continue to add the URLs of websites you wish to block, each prefaced with 127.0.0.1 and a space.
6. Click File/Save to commit to your changes. Dismiss any warnings from antimal ware software, which may be triggered by your editing of the hosts file.
7. Close any open browser windows, and then reopen a browser to test your edits. The blocked sites should not display in any browser.
2 comments
Click here for commentsThanks a lot for this post, useful to me.
ReplyI don't need firewall anymore for some websites!! I like this, thanks for sharing
ReplyConversion Conversion Emoticon Emoticon