Do you know what content your children are currently viewing online? Are you sure they don't stay up at midnight reading Facebook or YouTube at best? Or anything else that is certainly not conducive to a healthy lifestyle? In these, it is always better to cut for the sane and go safely. Therefore, we will explain below how to block a website of any kind.
Method 1: use of parental controls
Both Windows and MacOS have built-in parental controls, making it easy to block what you don't want accessible on your system.
Parental controls in Windows 10
Step 1: You must first set up a secondary account. To do so, go to the Windows 10 settings menu by searching for it or clicking the gear icon in the menu. Start.
Step 2: click Accounts.
Step 3: click on the tab Family and other people and click on the button Add a family member.
Step 4: another window will open and select the option Add a child and enter the information required to configure your child's profile.
Step 5: Go to your Microsoft account page. Select the tab Web browsing and check the box Only view websites in the allowed list.
Step 6: Here you will see the sections for Always allow Y Always block. Enter URLs of the sites you want to block in the corresponding section and click on the button To block on the right.
Use parental controls on MacOS
Windows is not the only operating system that allows you to monitor your child's activities online. You can use the Parental Control feature on MacOS to block websites, which is particularly useful if you want to keep your children off certain websites, without restricting access for other users.
Step 1: opens System preferences and click on the button Parental controls.
Step 2: Your Mac will ask you if you want to create a new profile with parental controls, or add them to your current profile. Assuming you want to block websites for when your kids use the computer, while keeping them open for you, select Create a new user account with parental control.
Step 3: If your current profile is protected with a password, you must enter your password. Once you have created the profile, select it in Parental control Y click on the web tab.
Step 4: If you feel particularly draconian, you can also allow access only to specific websites. If not, just click the button Personalize. In the resulting popup, there will be a section for adding websites that are always allowed, and a lower section for websites that are never allowed.
Step 5: to add a website you want to block, click the add sign under the heading Never allow and enter the site address you want to block. Now, enter as many websites as you want to block, one per line.
Step 6: when you're done, click ok in the lower right corner.
Method 2: modify host file
Block using Windows host file
Blocking specific websites on Windows is child's play, and generally child-proof. It is completely free, does not require any additional software and only makes a few quick modifications to the Windows hosts file on your computer.
The hosts file, a plain text file that your operating system uses to map IP addresses and host names, can be used to redirect a domain name back to the local computer, essentially blocking the desired website.
It's a great way to restrict users from viewing content they don't want them to see, regardless of browser and time of day.
Note, however, that you must have administrator privileges to change the file, and it can be a bit technical. You can always undo the change if necessary, but the process is a bit more practical than Windows / MacOS parental controls.
Step 1: Using Windows Explorer, write exactly what is in bold and inside the parentheses and without spaces: (C: Windows System32 drivers etc).
Step 2: double click on the file named hosts and select memo pad when prompted to choose a program to open the file. Alternatively, you can start Notepad and navigate to the host file by selecting File> Open and locating the file through that window following the path selected in step 1.
Step 3: In Notepad, you will see several lines of text used for mapping purposes. Beneath the last line of text, it should say something about a local host, type 127.0.0.1 and hit the space bar. Then type the IP address of the website you want to block on the same line. For example, type 127.0.0.1 www.youtube.com to block all traffic from the popular video sharing site.
Step 4– Continue adding websites you want to block in this way, each starting with 127.0.0.1 followed by a space and the appropriate website. Make sure you only use www and avoid adding http, unless you want the entry to be invalid. Do not modify any other text in the hosts file.
Step 5: Once you have added the sites you want to block, click on the option Archive in the upper left corner, choose save, do not change the name or save the location and ignore the warnings related to editing the hosts file. Then close Notepad when you're done.
Step 6: Open your favorite browser and test the results. You should automatically get a blank page every time you try to access any of the sites on your blocked page list. You may need to restart your browser and wait several minutes for the changes to take effect.
Using the MacOS hosts file
Blocking websites with MacOS works similarly to blocking them with Windows. The process is free, relatively quick, and requires altering your Mac's hosts file to redirect to a specific domain name. It is a simple process to prevent users from viewing content that you consider to be lockable in all browsers, but it can be reversed if you want to grant access to the sites in the future.
Step 1: Start Terminal by accessing the main applications folder, clicking on Utilities and selecting the program from the resulting list. You can also do this by searching for the program in Spotlight.
Step 2– Now is the time to make a copy of the hosts file in case something goes wrong. Type sudo / bin / cp / etc / hosts / etc / hosts-original on the Terminal command line to back up the file in question. Press Enter and type your administrative password when prompted. Keystrokes may not appear to be registered correctly, i.e. the cursor does not move, but you can be sure that yes.
Step 3: type sudo nano / etc / hosts and press Enter on the Terminal command line to open your hosts file in a nano box. Then, enter your administrative password when requested.
Step 4– Once the hosts file is opened, you will see several lines of text used for mapping purposes. Beneath the last line of text, it should say something about a local host, type 127.0.0.1 and press the space bar.
Then, type the IP address of the website you want to block on the same line. For example, type 127.0.0.1 www.youtube.com to block all traffic from the popular video sharing site.
Step 5– Continue adding websites you want to block in this way, each starting with 127.0.0.1 followed by a space and the appropriate website. Make sure you only use www and avoid adding http, unless you want the entry to be invalid, and don't alter any other text in the hosts file.
Step 6: when you finish, hold down the Control key and press O to save the changes. Then, hold down the Control key and press X to exit the hosts file.
Step 7: then, type sudo dscacheutil -flushcache and press Enter again to empty your existing cache and implement the changes. Alternatively, you can restart your computer.
Once you've turned it on again, open your favorite browser and test the results. You should automatically get a blank page every time you try to access any of the sites on your block list.
Method 3: use the router settings
Blocking all users, at all times, in all browsers may take some time using the above methods. Fortunately, your router does not require any external software and is another fantastic tool that will give you network-wide control over the blocking process.
Although we cannot guarantee that your router is capable of blocking specific websites, most routers are equipped with some form of parental control to completely restrict access to the website, during certain days of the week or even during defined hours.
Step 1: Open the web interface of your router. Most routers can be accessed by entering 192.168.1.1 in your browser's address bar and typing in a username and password. However, the default values ??vary from one router to another.
Be sure to check the instruction manual included with your router for the default IP address, username, and password. If it is not available, try looking for the router default values ??at routerpasswords.com or cirt.net.
Step 2: Navigate to the router's security panel or the tab that presents the lock controls. Security options are usually found in something like Access restrictions or Content Filtering.
Step 3– Once you have discovered the correct location, enter the websites you want to block and any other content restrictions you want to implement. Save and apply the new settings when you're done.