How Do I Block Twitter & Facebook on My Computer?

Websites like Facebook and Twitter can be blocked in several ways. Browser-agnostic options work best with computers that have multiple browsers installed but need blocking in all of them. Browser-specific blocking works best when you only use one browser and can restrict access to other browsers.

Browser-Agnostic

Browser-agnostic website blocking operates outside the Web browsers. Typically this is done in three ways: Using the Windows Hosts file, blocking the sites on your router or using Microsoft Family Safety. The Hosts file or Microsoft Family Safety are better options if you want to restrict site access on only one computer, while blocking sites on the router is better if you want to restrict access to all computers on the network.

Hosts File

Step

Open File Explorer and find the Hosts file. Typically, you can find it by following this file path:

Find the Hosts file.
credit: Image courtesy of Microsoft.

Step

C:\Windows\System32\drivers\etc\

Select Open With from the context menu.
credit: Image courtesy of Microsoft.

Step

Right-click Hosts and select Open With.

Select Notepad.
credit: Image courtesy of Microsoft.

Step

Select Notepad from the list.

Add your local host IP and the website address to the list.
credit: Image courtesy of Microsoft.

Step

Add the following lines to the bottom of the document:

Step

127.0.0.1 www.twitter.com

Step

127.0.0.1 twitter.com

Step

127.0.0.1 www.facebook.com

Step

127.0.0.1 facebook.com

Save the Hosts file.
credit: Image courtesy of Microsoft.

Step

Click File followed by Save to save the host file and block the sites.

Router

Step

Go to your router's administration interface by entering the router's IP address in a Web browser and sign in to the router administrator account.

Log into the router's administrator interface.
credit: Image courtesy of Arris.
Open the access control system.
credit: Image courtesy of Arris.

Step

Go to the interface's access control system, typically listed as Access Control or Access Restrictions. It may also be listed under Parental Control.

Create a filter for the website.
credit: Image courtesy of Arris.

Step

Create a new filter and enter the details of the restrictions you want to enter and set the filter to Block. Restrictions can include username, the blocked website and even a specific time of day to block access.

Save the website filter.
credit: Image courtesy of Arris.

Step

Click Save or Apply when finished to confirm and activate the filter or block.

Microsoft Family Safety

Internet Explorer, Firefox and Opera block websites and content using Windows's Family Safety options, which require you to create and use a "child" account in order to restrict content. Administrator accounts can manage the content a child account is allowed to access, including specific websites. Administrators can also establish limits on the amount of time spent on the child's account.

To create a child account, follow the instructions provided by Microsoft. When the account is set up, the following directions block any website, including Facebook and Twitter.

Step

Press Windows-X and select Control Panel.

Select Control Panel from the Power User menu.
credit: Image courtesy of Microsoft.
Select Set Up Family Safety For Any User.
credit: Image courtesy of Microsoft.

Step

Click Set up Family Safety for any user.

Select the child account.
credit: Image courtesy of Microsoft.

Step

Select the child account you want to restrict.

Click Web Filtering.
credit: Image courtesy of Microsoft.

Step

Click On, enforce current settings radio button and then click Web Filtering.

Click Allow or Block Specific Websites.
credit: Image courtesy of Microsoft.

Step

Click the [Account Name] can only use the websites I allow radio button and then click Allow or block specific websites.

Type the website URL and click Block.
credit: Image courtesy of Microsoft.

Step

Enter the URLs for the websites you want to block -- in this case http://www.twitter.com and http://www.facebook.com -- and click Block to add them to the blocked list.

Browser-Specific

Browser-specific blocking options are best when you control what browsers are available on the computer and how other users access them. As of publication, Chrome requires its own specific setup, while Internet Explorer, Firefox and Opera can all have websites blocked from the Microsoft Family Safety.

Chrome, Firefox and Opera all also feature extensions that can block websites, although the frequent update cycle of Web browsers means some site-blocking add-ons may not work properly after a new update.

Chrome

Chrome features website blocking only when using supervised user accounts. Supervised user accounts are special accounts overseen by an administrator account, which can block websites, review Web history and adjust user settings for the supervised user.

To learn how to create and manage supervised accounts on Chrome, check out Google's help page on the subject.