In this article, we have shared how to block a website in web browsers on Windows, Mac, iPhone, iPad. You will see how to prevent a particular site from being gotten to on any browser on a Windows or Mac PC by editing the “hosts” file. Also, while you can’t block sites on Android platforms, you can block sites on an iPhone or iPad utilizing the Restrictions menu in the Settings.
Technique 1: How to Block a Website On Windows Web Browser
- Open the Start menu. Tap on the Windows logo in the base left corner of the screen or press the ⊞ Win key.
- On Windows 8, you should float your cursor in the upper right corner of the screen and afterward tap the amplifying glass symbol.
- Type Notepad into Start. Doing as such will show the Notepad application at the highest point of the Start menu window.
- Right-tap on Notepad and select Run as administrator. This option will open Notepad utilizing your administrator privileges. If you don’t open Notepad in head mode, you won’t have the capacity to edit the “hosts” file.
- On a portable workstation with a trackpad rather than a conventional mouse, utilize two fingers to tap the trackpad rather than right-clicking.
- Click on Yes when provoked. Doing as such will confirm your choice and open Notepad.
- Click on File and select Open.
- Double click on the Local Disk (C:) and after that go to Windows > System32 > drivers > and so on. Double tap every folder until the point that you are in the “etc” folder.
- Tap on the “Text Documents” drop-down menu and select All Files. You should see a few files show up in the window.
- Double click on the “hosts” file. This will open the “hosts” file in Notepad, enabling you to see and edit its substance.
- Look down to the base of the “hosts” file. You’ll see two “localhost” lines of content here.
- Click beneath the last line of content. It will state either “::1 localhost” or “127.0.0.1 localhost” at the base of the page. Your cursor must be straightforwardly underneath the keep going line of content on this page.
- Be mindful so as not to delete anything that is as of now in the host’s file.
- Type in 127.0.0.1 and squeeze Tab ↹. This is the loopback deliver to your own particular PC. This is the thing that will restore a blunder page in your web program when somebody tries to visit the blocked site.
- Type the address of the site you need to block. For instance, in the event that you needed to block Google, you would sort www.google.com.
- Press ↵ Enter. This moves your cursor to another line. The code you entered will advise your PC to redirect the site to your loopback address.
You can include the same number of destinations as you need to block, one for every line, utilizing a similar number (127.0.0.1) as some time recently.
- Click on File and select Save. The site you included will now be inaccessible in any web program on the PC.
- To unblock a site, basically open the host’s document in Notepad again with manager benefits and erase the lines that you included. Ensure you save your progressions in the wake of removing the lines you included or the locales will, in any case, be blocked.
Technique 2: How to Block a Website On Mac Web Browser
- Open Spotlight. To do as such, tap the magnifying glass symbol on the upper right half of your Mac’s screen.
- Type terminal into Spotlight. This will incite Terminal to show up at the highest point of the query items.
- Double tap the Terminal symbol.
- Type the accompanying code into Terminal:
Also, press ⏎ Return. Doing as such will run the charge. This order opens the “hosts” file in a content tool within the Terminal window.
- Enter your Mac’s password and press ⏎ Return. This is the password you use to sign into your Mac.
- Terminal won’t show the password characters as you write them.
- Move the flickering cursor down to the base of the page. To do as such, press the ↓ key until the point that the cursor is beneath the keep going line of content on the page.
- Type : 127.0.0.1.This is the loopback address to your own PC. This is the thing that will restore an error page in your web browser when somebody tries to visit the blocked site.
- Press Tab ↹. The cursor will move to one side.
- Try not to press ⏎ Return yet.
- Type the address of the site you need to block. For instance, if you needed to block Google, you would sort www.google.com.
- Press ⏎ Return. This will advise your PC to divert the site to your loopback address.
- You can include the same number of destinations as you need to block, one for each line, utilizing a similar number (127.0.0.1) as some time recently.
- Press Control+X. This is the order to leave the host’s file in the word processor. It will provoke you in the event that you’d jump at the chance to spare your progressions.
- Press Y to save your changes. It will then ask you what filename you’d get a kick out of the chance to save it as. You need to overwrite the first host’s file, so don’t change the filename.
- Press ⏎ Return. This will save your changes to the first host’s file. This leaves the content manager and returns you to the fundamental Terminal window. The site you included will now be inaccessible in any web program on the PC.
- To unblock a site, just open the host’s file again and erase the lines that you included. Ensure you save your progressions in the wake of removing the lines you included or the locales will, in any case, be blocked.
Technique 3: How to Block a Website On iPhone and iPad Web Browser
- Open your iPhone’s Settings. It’s a grey application with gears on it. You’ll likely discover Settings on the Home Screen.
- Look down and tap General. This choice is close to the base of the screen (iPhone) or in the upper-left half of the screen (iPad).
- Look down and tap Restrictions. It’s close to the center of the General page.
- Enter your confinements password. This is the password you used to enable confinements on your gadget.
- If you haven’t yet enabled confinements, first tap Enable Restrictions, at that point enter your coveted password twice.
- Look down and tap Web sites. It’s the last passage underneath the “ALLOWED CONTENT” heading.
- Tap Limit Adult Content. You’ll see a blue check mark appear to one side of this option.
- Tap Add a Website beneath the “NEVER ALLOW” heading. This is the keep going option on the page.
- Type in the web address of the site you wish to block. The address must begin with “www” and end with a domain tag (e.g., “.com” or “.net”), however, you can leave the “https://” segment out of material.
- For instance, if you needed to block Facebook on your iPhone or iPad, you would type in www.facebook.com.
- Tap on Done. It’s the blue button in the base right corner of the keypad. Your chosen site is presently blocked off in the Safari browser.
- This setting likewise applies to other well known mobile browsers, for example, Chrome and Firefox.