Block Any Website On Your Computer, Phone, or Network

Test your current internet speed

Before you get started, test your current internet speed. Use your speed test result as a baseline and compare the results as you go through your journey on reaching a faster internet connection.

Article Starts Here

You may wish to ban specific websites on your computer for a variety of reasons. Some websites may distribute malware, contain obscene content, or attempt to steal your personal information.

While you may be perfectly capable of avoiding certain sites, this does not apply to everyone who uses your device. In such instances, blocking specific websites may be the best option.

There are several methods for restricting websites. You may restrict access to websites to certain browsers, the entire operating system, or even your network router. Here’s how to set up a website blocker.

On your computer

You may put up a block at the operating system level to limit access to websites on a single workstation.

This approach for banning websites is simple to set up and works across all browsers.

Here’s how to block any website on Windows computers

The DNS system, which converts easy-to-remember (and type) names like into corresponding IP addresses, is one of the Internet’s backbones (

While DNS servers are used to access websites, your computer also includes a HOSTS file where this information may be saved locally.

This may be used to block access to websites that you don’t want to see.

1. Verify that you have administrative privileges on your computer. Log in as an administrator to your PC and navigate to C:WindowsSystem32driversetc.

2. Open the file “hosts” by double-clicking it and selecting Notepad from the list of applications. Click the OK button. “# localhost” and “# ::1 localhost” should be the last two lines of your hosts file.

2a. If you can’t edit the file, right-click the hosts file and select Properties from the context menu. Select the administrator account from the Security menu and click Edit.

2b. Select the account again in the pop-up and tick Full control. Select Yes from the Apply menu. Now, in all pop-up windows, click OK.

3. You may add the addresses of websites to block at the end of the file. Simply add a line at the end of the file with and the name of the site you wish to block, and the site’s name will be redirected to your local computer.

4. Add “” at the end of the file without the quotes to block Google, for example. This manner, you can block as many sites as you like, but keep in mind that you can only add one per line.

5. Repeat step 5 until all of the websites you wish to ban have been added.

6. Finally, save the hosts file by closing it. If you restart your computer, the modifications will take effect, and all of those websites will be banned.

How to Block Any Website On Windows Computers

How to Block Any Website for the Mac user

On OS X, here’s how to ban websites:

  1. Verify that you have administrator privileges on your Mac. Open Terminal now. It’s located at /Applications/Utilities/Terminal.
  2. Press enter after typing sudo nano /etc/hosts. When asked, enter the user (login) password.
  3. This will open a text editor and open the file /etc/hosts. In a new line, type the website’s name in the format “” (minus the quotes). Start a new line for each website you wish to block and type the same command, changing just the website’s name. To save your changes, hit ctrl+x and then Y.
  4. To ensure that the websites are banned, type sudo dscacheutil -flushcache and press Enter or restart your system.

Best way to block any website at browser level?

The simplest approach to get the job done is to block a website in any browser.

BlockSite is a Firefox plugin that allows you to block websites.

  1. Install the addon, then hit Extensions on the left by pressing ctrl+shift+a. Now, under BlockSite, click Options. Click Add in the pop-up and input the name of the website you wish to ban. Rep the procedure for any other websites you don’t wish to visit. Click the OK button.
  2. Firefox will now restrict access to these sites. To prevent others from changing the list of prohibited websites, you may establish a password in BlockSite. The options menu outlined in the previous step can be used to do this.

Google Chrome users may use BlockSite as well.

You can simply block websites with Internet Explorer. Here’s how to do it:

  • Go to Tools (alt+x) > Internet Options on your browser. After that, go to the security tab and select the red restricted sites icon. Below the symbol, click the Sites button.
  • Now manually input the websites you wish to ban one by one in the pop-up. After you’ve typed the name of each site, click Add.

Block website On your phone or tablet

Learn how to block any website on your iPhone or iPad.

Apple has several useful parental controls that allow you to ban specific websites. Here’s how to do it:

  1. Go to Settings > General > Restrictions.
  2. Select Enable Restrictions from the drop-down menu. Set a restriction passcode now. It’s best if this isn’t the same as the passcode you use to unlock the phone.
  3. Scroll down and hit Websites once you’ve established the passcode. You can either block access to adult material or just allow access to particular websites.
  4. There’s a small list of permitted websites in particular websites only, like Discovery Kids and Disney, but you may also add sites by clicking on Add a Website.
  5. Apple bans websites that are judged undesirable if you choose Limit adult content, but you may whitelist them by tapping Add a Website under Always Allow or blacklist them by tapping Never Allow.
  6. When you try to visit a restricted website, you’ll get a notice saying it’s blocked. To open that website, tap Allow Website and enter the Restrictions passcode.
How to Block Any Website On Your iPhone and iPad

Learn how to block any website on your Android phone.

There are a few different things you can accomplish using Android. If your phone is rooted, you may block websites by changing the hosts file to reroute sites you don’t want to see.

You’ll need a file manager and a text editor; the most convenient choice is to use our favorite software, ES File Explorer, which does both.

This is how it goes:

  1. Install ES File Explorer. Open ES File Explorer and tap the menu button at the top left. Tap on Local > Device > system > etc.
  2. In this folder, you’ll see the file named hosts – tap it and in the pop up menu, tap text. In the next pop up, tap ES Note Editor.
  3. Tap the edit button in the top bar.
  4. Now, you’re editing the file, and to block sites, you want to redirect their DNS. To do this, just start a new line, and type “” (without the quotes, where blocked website is the name of the site you’re blocking) for each website you want to block. For example, you’ll have to type to block Google.
  5. Reboot your Android device.

If that approach is too difficult for you, you may use an anti-virus program like Trend Micro to block websites.

  1. Install the app and run it. Go to Options > Safe surfing.
  2. Now swipe to Parental Controls and click set up account. Create an account and you’ll see an option called Blocked List in the app. Tap it, and tap Add. Now add the websites you want to block one at a time. Once that is done, you won’t be able to access these websites on your Android smartphone.

Learn how to Block Any Website On Your Network

If you have a Wi-Fi network at home, you may simply put up a ban on undesirable websites using your router. Most routers don’t have particularly user-friendly interfaces, so this can be a little intimidating.

Of course, the procedures differ per router, but the core process is quite consistent, so if you’re patient, this is actually rather simple.

If you make a mistake, you risk deactivating your connection, so call your ISP straight once if you get stuck.

  1. We tried this on a Beetel 450TC1 router provided by MTNL in Delhi, and with a Binatone Router provided by Airtel. The steps were exactly the same for both. To start, you need to go to your router’s settings. Open any browser and type in the address bar. Press Enter. Some routers use a different address, so if this doesn’t work, check and see if it is mentioned in the documentation from your ISP.
  2. Now you will have to enter a username and password. This would have been set up during the installation of your connection – defaults are usually username: admin, and password: password. If not, check with your ISP and get the correct username and password.
  3. As mentioned earlier, the interface can differ. In our MTNL router, we found that we could block websites under Access Management > Filter.
  4. Here there’s a drop-down menu called Filter type selection. We selected URL Filter and typed the website we wanted to block in the URL field below. Above this field, there is an option called Active. Here we saw two buttons, Yes and No. We selected Yes and hit Save. This blocked the website on our network.
  5. You can create 16 lists of blocked websites, each containing 16 websites, using this method, letting you block up to 256 websites. Again, this will vary from router or router.

This article should have been able to assist you with blocking websites on nearly any device. Please let us know if you know of any other ways to ban websites in the comments section.