Preventing access to certain websites on your computer can be crucial, especially if you’re trying to shield your kids or yourself from distracting or harmful content. While browser extensions may seem like a quick fix, they only block sites for specific browsers. To ensure comprehensive protection across all browsers, follow this guide to block websites on your Chromebook, Mac, or Windows 10/11 computer effectively.
4 Easy Ways to Block Any Website on Your Computer
By following these detailed methods, you can effectively block any website on your computer across different browsers.
Method 1: Blocking Websites on Windows
Step 1: Access Notepad as an Administrator
- Open Start Menu: Click the Windows logo located at the bottom-left corner of your screen.
- This method is compatible with both Windows 10 and Windows 11.
- Search for Notepad: Type
notepad
in the search bar. This action will locate the Notepad app on your computer. - Open Notepad in Administrator Mode:
- Right-click on the Notepad application at the top of the search results.
- Select
Run as administrator
from the drop-down menu. - Click
Yes
when prompted to confirm. The Notepad window will open in administrator mode.
Step 2: Open the Hosts File
- Open File Menu: Click on
File
located at the top-left corner of the Notepad window. This will open a drop-down menu. - Click Open: Select the
Open...
option near the top of the File drop-down menu to open a File Explorer window. - Navigate to the etc Folder:
- Click
This PC
on the left side of the File Explorer. - Scroll down and double-click your hard drive (typically labeled
OS (C:)
). - Double-click the
Windows
folder, followed bySystem32
, thendrivers
, and finally theetc
folder.
- Click
- Change File Type:
- Click the
Text Documents (*.txt)
box on the lower-right side of the window. - Select
All Files
from the drop-down menu to display all files in the etc folder.
- Click the
Step 3: Modify the Hosts File
- Remove Security from Hosts File:
- Right-click the
hosts
file. - Select
Properties
from the drop-down menu. - Navigate to the
Security
tab and clickEdit
. - Check the
Full Control
box, clickOK
, then confirm by clickingYes
.
- Right-click the
- Open the Hosts File:
- Select the
hosts
file and clickOpen
. The file will now open in Notepad.
- Select the
- Add Websites to Block List:
- Scroll to the bottom of the document and click to place the cursor at the end of the last line.
- Press
Enter
to create a new line. - Type
127.0.0.1
and pressTab
. Then, type the website’s address without the “www” prefix (e.g.,facebook.com
). - Press
Enter
and repeat for any additional websites you wish to block.
- Block Google Chrome Sites:
- For Chrome, after adding the site without “www,” also include the “www” version (e.g.,
127.0.0.1 facebook.com www.facebook.com
). - Adding the full URL (e.g.,
127.0.0.1 facebook.com https://www.facebook.com
) can enhance blocking effectiveness.
- For Chrome, after adding the site without “www,” also include the “www” version (e.g.,
- Block Alternative Versions:
- Block the site’s IP address and mobile version by including their specific formats (e.g.,
m.facebook.com
).
- Block the site’s IP address and mobile version by including their specific formats (e.g.,
Step 4: Save Changes and Apply
- Save the Hosts File:
- Click
File
and selectSave As...
. - Change
Save as type
toAll Files
. - Select the
hosts
file and save it, confirming overwrite if prompted.
- Click
- Flush DNS Cache:
- Open Command Prompt by typing
cmd
in the Start Menu search bar. - Right-click Command Prompt and select
Run as administrator
. - Type
ipconfig /flushdns
and pressEnter
.
- Open Command Prompt by typing
- Restart Browsers: Close and reopen any browser windows. If the websites remain accessible, restart your computer to finalize changes.
Method 2: Blocking Websites on Mac
Step 1: Access Terminal
- Open Spotlight Search: Click the magnifying glass icon in the upper-right corner of your screen.
- Search for Terminal: Type
terminal
in the search box. - Open Terminal: Double-click
Terminal
in the search results to open it.
Step 2: Open the Hosts File
- Open Hosts File with Nano Editor:
- Type
sudo nano /etc/hosts
and pressReturn
. - Enter your Mac’s password when prompted. Note: Terminal will not display your password characters as you type.
- Type
- Navigate to the Bottom of the Hosts File:
- Use the down arrow key to move the blinking cursor to the end of the text.
- Press
Return
to create a new line.
Step 3: Add Websites to Block List
- Block Websites:
- Type
127.0.0.1
followed by a tab space and the website’s address without “www” (e.g.,facebook.com
). - Press
Return
and repeat for additional websites.
- Type
- Block Google Chrome Sites:
- Include the “www” version (e.g.,
127.0.0.1 facebook.com www.facebook.com
). - Add the full URL for increased effectiveness (e.g.,
127.0.0.1 facebook.com https://www.facebook.com
).
- Include the “www” version (e.g.,
- Block Alternative Versions:
- Block the IP address and mobile versions by including specific formats (e.g.,
m.facebook.com
).
- Block the IP address and mobile versions by including specific formats (e.g.,
Step 4: Save Changes and Apply
- Save and Exit Nano Editor:
- Press
Control + O
to save the changes, then pressReturn
. - Press
Control + X
to exit the editor.
- Press
- Flush DNS Cache:
- Type
sudo killall -HUP mDNSResponder
and pressReturn
.
- Type
- Restart Browsers: Close and reopen any browser windows. If necessary, restart your computer to ensure the changes take effect.
Method 3: Using Chromebook & Google Chrome
Blocking websites on a Chromebook or through Google Chrome can be effectively managed with the use of the Block Site extension. This method allows you to restrict access to specific sites or entire domains and set a password to ensure that other users cannot change the block settings.
Step 1: Install Block Site Extension
- Open the Block Site Page: Start by navigating to the Block Site extension page on the Chrome Web Store. This is where you will download and install the extension.
- Block Site is a versatile tool that lets you block individual web pages or entire websites and set a password to prevent unauthorized changes.
- Add to Chrome: Click the blue
ADD TO CHROME
button located on the upper-right side of the Block Site page. - Confirm Installation: When prompted, click
Add extension
. This will trigger the installation of Block Site on your Chrome browser.
Step 2: Configure Block Site
- Access Block Site Settings:
- After installation, click the Block Site icon, which appears as a shield-shaped icon in the upper-right side of the Chrome browser. A drop-down menu will appear.
- From the drop-down menu, click
Edit block sites list
to open the Block Site configuration page.
- Alternatively, you can click the gear-shaped icon at the top-right corner of the drop-down menu to open the Block Site settings.
- Add Websites to Block:
- In the Block Site settings, locate the
Enter a web address
text box near the top of the page. - Type the URL of the website you want to block. For blocking a specific page, visit the page and copy the address from the address bar using
Ctrl+C
(Windows) or⌘ Command+C
(Mac). - Click the
+
button next to the text field to add the website to your block list.
- You can remove any blocked site at any time by clicking the red circle icon next to the URL in the blocked sites list.
- In the Block Site settings, locate the
Step 3: Secure Block Site with a Password
- Enable Password Protection:
- On the left side of the Block Site page, click the
Password Protection
tab. - Check the box next to
Require a password to access Block Site menu
. This will activate a password text box at the bottom of the page.
- You may also check the
Enable password access to blocked pages
box if you want to allow temporary access to blocked sites with your password.
- On the left side of the Block Site page, click the
- Set Your Password:
- Scroll down to the password text box and enter a strong password with at least 5 characters.
- Click the
Set Password
button to apply your password settings.
- In the future, you will need to enter your password to make changes to the Block Site settings or to unblock sites.
- If you forget your password, you can remove the Block Site extension by right-clicking the Block Site icon and selecting
Remove from Chrome
.
Step 4: Enable Block Site in Incognito Mode
- Allow Block Site in Incognito Mode:
- Click the
⋮
menu (three vertical dots) in the upper-right corner of Chrome. - Select
More tools
and thenExtensions
. - Find the Block Site extension and click
DETAILS
. - Toggle the
Allow in incognito
switch to ensure Block Site functions even in incognito mode, preventing users from bypassing the block.
- Click the
Method 4: Using Firefox
Firefox users can also benefit from the Block Site extension to restrict access to unwanted websites. Here’s how to set it up:
Step 1: Install Block Site Extension
- Open Firefox: Launch the Firefox browser on your computer.
- Navigate to Block Site Webpage: Go to the Block Site extension page for Firefox. This is where you’ll download and install the extension.
- Add to Firefox: Click the
+ Add to Firefox
button in the middle of the page. You may need to scroll down to locate it. - Confirm Installation: When prompted, click
Add
. This will install Block Site in your Firefox browser.
Step 2: Configure Block Site
- Access Block Site Settings:
- Click the Block Site app icon, which is an orange, shield-shaped icon in the upper-right side of the Firefox window. A drop-down menu will appear.
- If needed, click
Got it
to proceed.
- Edit Block Sites List:
- In the drop-down menu, click
Edit block sites list
to open the Block Site configuration page.
- Alternatively, click the gear-shaped icon at the top-right corner of the drop-down menu to access the settings.
- In the drop-down menu, click
- Add Websites to Block:
- Enter the URL of the website you wish to block in the
Enter a web address
text box near the top of the page. - For blocking specific pages, visit the page and copy the address using
Ctrl+C
(Windows) or⌘ Command+C
(Mac). - Click the
+
button to add the website to your block list.
- To remove a site from the blacklist, click the red circle icon next to the URL in the blocked sites list.
- Enter the URL of the website you wish to block in the
Step 3: Secure Block Site with a Password
- Enable Password Protection:
- Navigate to the
Password Protection
tab on the left side of the Block Site settings page. - Ensure the
Require a password to access Block Site menu
box is checked. This will reveal a password text box at the bottom of the page.
- If you want to allow temporary access to blocked sites with your password, check the
Enable password access to blocked pages
box.
- Navigate to the
- Set Your Password:
- Scroll to the password text box and enter a secure password with at least 5 characters.
- Click the
Set Password
button to apply your password settings.
- You will need to enter this password to add or remove sites in the future.
- If you forget your password, you can remove the Block Site extension by clicking
☰
(three horizontal lines), selectingAdd-ons
, and clickingRemove
next to Block Site on the Extensions page.
By following these detailed steps, you can effectively block unwanted websites on your Chromebook or through Google Chrome and Firefox browsers. Setting up password protection ensures that only you can modify the block settings, providing robust control over web access.
Add comment