Internet is not always safe, especially when the website content is concern. Internet is for good but it depends on the person who is using that. Computer with internet connection requires special lookout if it is used in schools or universities as some people might use internet connection for using unnecessary websites. To ensure the proper use of internet we can block website on computer by blocking urls so that we can’t access those website.
Solution Exist reader, If you want to block website in computer then this post id for you. Blocking social website is common in college and schools. If you are having computer at home and that is also used by children the this is a good way to make them away from certain website. This blocking website is a best way to block access to website. To block website in computer you don’t need any website blocker software, you can easily block a website without software. If you also want to block certain website in your computer then follow the steps given below.
Steps To Block Website In Computer
- Firstly Click on Start button.
- Locate and click Computer or My Computer.
- Go to the following location: C:\Windows\System32\drivers\etc
- Locate a file called Host. Right-click it and open it by using the Notepad.
- Now type: 127.0.0.1 and write the website you want to block and hit Enter.
- Type as many websites as you want to block.
- When you have finished with the list, click Enter for the last time so to add an extra line.
- Save the file.
- Restart your computer for the change to take effect.
If you are a Mac user then here is the way to block website on pc.
How to Block Any Website On Your Mac
Here’s how to block websites on OS X .
- Make sure you have administrator access to your Mac. Now open Terminal.
You can find it under /Applications/Utilities/Terminal. - Type sudo nano /etc/hosts and press enter. Enter the user (login) password when prompted.
- This will open the file
How to Block Any Website On Your Mac
Here’s how to block websites on OS X .
- 1. Make sure you have administrator access to your Mac. Now open Terminal. You can find it under /Applications/Utilities/Terminal.
- Type sudo nano /etc/hosts and press enter. Enter the user (login) password when prompted.
- This will open the file /etc/hosts in a text editor. Type the name of the website in a new line in this format “127.0.0.1 www.youtube.com” (without quotes).
Here you need to enter all the website that your want to block in your computer and with the same format and in new line. When done, press ctrl+x and then Y to save changes. - Now key in the command sudo dscacheutil -flushcache and press Enter or restart your machine to make check the websites are blocked.
Wrapping Up
This is the best way to block website in computer without software. If you need to unblock the website you need to remove website URL from that file. This is the best way to block Facebook in computer and other social networking website. Hope you liked our tutorial on block access to website in PC. If you faced any issue then feel free to comment below, Solution Exist will help you.
Leave a Reply