How to block Facebook and Youtube in my laptop?

Sponsored Links

>> Monday, May 23, 2011

Social networking and videos websites, sometimes is a time killer, it might deviate us from our important works that we do with our desktop or laptop. If you are unable to prevent yourself from keep on looking these websites, there is no other way than blocking it. In most of the companies, these kind of websites are blocked using firewalls, which will be effected on all computers in the network. But here we are discussing about blocking these kind of websites in your personal laptop or individual computer.

Facebook and YouTube are arguably the most distracting websites. If you feel you cannot move forward without blocking these websites, here is an easy method. Which does not require any additional software installation or special cost.

If you are using Windows XP/Vista/7 just go to the run and open below folder:


you can find a file called 'Hosts'. just copy this file and paste in desktop or somewhere else. Now rename the file (from desktop) to 'hosts.txt' and open the file in notepad. Your file will be looking like this:


Now copy the list given below just after the last line in the hosts file:

01    # Block Websites

Now save the hosts file and remove the .txt extension, and copy the hosts file you have modified to the earlier locaiton: C:\WINDOWS\system32\drivers\etc 
Once you get the dialogue box, opt to replace the existing file with the new file.

Now run the below commands in CMD:

ipconfig /flushdns
ipconfig /registerdns

Now open the browser and check if the websites are apprearing. If it still appearing just reboot your computer and check again. It worked?

Remember, if you dont want to block Youtube, you can remove last two entries in the hosts file, and if you want to block only Youtube not Facebook, you can simply remove the entries from 2 to 13!!

Like this post? please share and promote! by clicking below icons:

Post a Comment

Related Posts Plugin for WordPress, Blogger...

About This Blog, as its name denotes, is a Technology Locator. provides you news and reviews on latest trends in technology, internet, social media, and gadgets. You can brows through several how-to articles and tips and tricks for better usability of Computer and Internet Technology. Please feel free to join our Facebook Fan page and subscribe to our posts to keep yourself updated.Read more here

Write for Technocator

If you are interested to write about technology topics and tutorials, technocator provides you an opportunity to become a guest blogger.
In return you will get full credit for the post, an author page with a bio and your website will also be linked at the top and bottom of every post you make.
More Details here

  © Blogger template Werd by 2009

Back to TOP