Home > How To > How To Block Websites Using Host File Windows 7

How To Block Websites Using Host File Windows 7


Rating is available when the video has been rented. Please try again now or at a later time. Aman Arora 27,494 views 0:53 How to block websites on your computer using the hosts file (without downloading any programs) - Duration: 5:16. BEST OF HOW-TO GEEK 7 Ways To Free Up Disk Space on Your OS X Mac How to Take Pinhole Photos with a Digital Camera How to Easily Create Your Own have a peek here

Then, enter your administrative password when prompted. Because there is no default program set to open a file type like this, double clicking the hosts file will simply give you a Windows prompt, asking you which program you Next, type "sudo nano /etc/hosts" and hit Enter on the Terminal command line to open up your hosts file in a nano box. You'll now see several files, one of which is hosts.

How To Block Websites Using Host File Windows 7

If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Underneath the last line of text -- it should say something regarding a local host -- enter "" and press the spacebar. Working...

  • With Notepad open, select File > Open.
  • E.g the MVPS hosts file: 26,000 entries.
  • Then, close Notepad when finished.
  • To use the HOSTS file to block a website, assign the IP address of to the domain name of known ad servers and malicious websites. is the IP address
  • Abandon all squares, ye who divide me Why didn't the SRBs of the Space Shuttle use carbon instead of aluminium?
  • You can modify the hosts file to block access to certain websites.

You should always try without the www first to see if that works. Toby Kuhnert 85,080 views 5:16 Fix - How to Block Websites in Windows 8 - Duration: 3:13. Make Sure that you right click the hosts file and in the properties untick "read only"Then you can follow this guide from microsofthttp://support.microsoft.com/kb/923947it's just simply that you open notepad as "run How To Block Websites In Windows 7 Hosts File Ways to Bypass the Restriction Because this restriction is put in place by the Windows Defender (formerly known as Microsoft Security Essentials) antivirus included with Windows 8, you have several options

Double-click on C:\, then the Windows folder and scroll down the page until you reach the System32 folder. Block The Program In Your Firewall Windows 10 Joel says: 7 years ago thanks, thats useful for blocking certain stupid and addicting websites :) Rustam says: 7 years ago I edit the text file "HOST," but unfortunately I am Thank you. About Press Copyright Creators Advertise Developers +YouTube Terms Privacy Policy & Safety Send feedback Test new features Loading...

Start, then click Restore. How To Block A Website In Windows 7 Sign in to make your opinion count. Ofurpesi says: 5 years ago Open notepad as an administrator (right click, run as admin) choose open file, browse to hosts file, edit it and save Chris says: 5 years ago Most of this unwanted content comes from known ad servers and known malicious websites.

Block The Program In Your Firewall Windows 10

This file allows you to manually associate IP addresses with domain names (i.e., google.com) so the Domain Name Server (DNS) can quickly resolve an address. Tweet Like Google+ Leave a Reply Cancel reply Your email address will not be published. How To Block Websites Using Host File Windows 7 You're sitting at your desk at work, fiddling with some spreadsheets or documents online when you get a sudden urge to take a peek at Facebook. How To Block A Website On Chrome For example, the following lines would block both facebook.com and example.com: facebook.com127.0.0.1 example.comSave the file after you're done.

This is my hosts file [site URLs changed]: # Copyright (c) 1993-2006 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This navigate here Next, type "sudo dscacheutil -flushcache" and press Enter to flush your existing cache and put the changes into effect. For each name present in this file, a connection will be opened to the defined IP address. SHOW ME NOW CNET © CBS Interactive Inc.  /  All Rights Reserved. How To Block All Websites Using Host File

Required fields are marked *Comment Name * Email * Website Subscribe to Our Newsletter Featured Posts5 Ways to Make Sure No One is Monitoring Your ComputerHDG Explains - Swapfile.sys, Hiberfil.sys and Microsoft isn’t just doing this to annoy us – there’s a good reason for it. Beware that there are special instructions for Windows Vista and Windows 7. Check This Out Fru1TStanD 160,414 views 3:41 Cannot Edit the C:\Windows\System32\drivers\etc\hosts file ☛ 100% Working on how to edit hosts file - Duration: 3:31.

Sorry, there was a problem flagging this post. Host File Block Website List Articles l l Everything You Can Do With Your iPhone's Secret "Interrogation Codes" How to Speed Up Chrome and Fix Errors Without Reinstalling It What Is This HDMI ARC Port on Altering host files Block using Windows hosts file Blocking specific websites in Windows is child's play -- and usually childproof.

Visit Chat Linked 0 Block websites with /etc/hosts Related 2Blocking a game on XP with the hosts file3Possible reasons WINDOWS\system32\drivers\etc\hosts is not working (appart from the obvious)6Block domain, website, without waiting

Using MacOS hosts file Blocking websites using MacOS works in a similar fashion to blocking them using Windows. Some people use this trick to block websites – for example, you could point Facebook.com at, which is your computer’s local IP address. He began blogging in 2007 and quit his job in 2010 to blog full-time. How To Block A Website On Windows 10 Published on Dec 24, 2012IN DEPTH INSTRUCTIONS--------------------------------------Windows 8 won't allow you to block websites by modifying your hosts file.

For Windows XP/2000 users only In Windows XP and Windows 2000, if your HOSTS file gets to large (over 135 kb), the DNS Client (a system service) will cause problems on You may now edit the hosts file normally. Disclaimer: Altering your computer's hosts file to block a website can be a little technical. http://easygiftsoftware.com/how-to/how-to-install-pc-camera-in-windows-7.html Loading...

Sign in to add this to Watch Later Add to Loading playlists... You can just say if there's a request for url.com to go to the new IP address, –Canadian Luke Jul 30 '15 at 18:00 add a comment| 4 Answers 4 Latest update on October 13, 2014 at 08:30 AM by jak58. Step 2: Double-click hosts and select Notepad when prompted to choose a program to open the file with. Alternatively, you can launch Notepad and navigate to the host file by choosing File > Open, and

By cons, if the website isn't listed in the hosts file, your ISP will automatically connect you to the IP address of the requested website. Address - In order for it to work, it should read like this. localhost badsite.com anotherbadsite.com yetanotherbadsite.com worsesite.com worstsite.com cj says: 4 years ago The BradenP19 252,889 views 5:29 How to Modify the Hosts File in Windows 10 - Duration: 3:16. Is an overfitted model necessarily useless?

more hot questions question feed about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Science Continue to add websites you wish to block in this manner, each beginning with "" followed by a space and the appropriate website. For example, the malware could point Facebook.com at a different IP address entirely – one run by a malicious organization. Type the number, followed by a space or tab, and then type the name of a website.

Click "Run As Administrator"4. Continue to add websites you wish to block in this manner, each beginning with"" followed by a space and the appropriate website. Defining the HOSTS file The HOSTS file is located in the following locations for the respective versions of Windows: Windows 7, Windows Vista, Windows XP, Windows Server 2003: C:\WINDOWS\system32\drivers\etc Windows 2000: It's a simple process and a great way to restrict users from seeing content you don't want them to see, regardless the browser and the time of day.

Many, such as avast! To do that, just open a command prompt (click on Start and type in CMD) and type in the following command: ping examplewebsite.com In my example, I pinged Adobe.com. Working...