How to Block any Website on your Computer, Mobile Phone or Network

There are several reasons for that to block certain websites on your computer. Some websites could be Adult Content ,spreading viruses, contain explicit content. While you may well be more than capable of avoiding these websites, but that doesn't stand true for every one who uses your device. the best way to block certain websites.


How to Block any Website on your Computer, Mobile Phone or Network
How to Block any Website on your Computer, Mobile Phone or Network

There are different ways to go about blocking websites. You can choose to block websites only on specific browsers, the entire operating system, or indeed your network router. Here's how to block websites.

How to Block Website On Windows Computers


If you want to control access to websites on just one machine, then you can set up block at the operating system level. This method for blocking websites is not too hard to configure and will work across browsers.

One of the best way is the DNS system that translates easy to remember names such as www.google.com into equivalent IP addresses (8.8.8.8). While you use DNS servers to get to websites, your computer also has something called a HOSTS file which can have this information stored locally. This can be used to disable access to unwanted websites. We use this method with both Windows 7 and Windows 8.

1. For that you need to have administrator access on your computer. Sign in to your PC using an administrator account and go to C:\Windows\System32\drivers\etc\

2. Double-click the file named "hosts" and select and open with Notepad. The last two lines of your hosts file should read "# 127.0.0.1 localhost" and "# ::1 localhost".

        i.    In case you can't edit the file, you'll need to right-click the file labelled hosts and select Properties. Click the Security tab, select the administrator account and click Edit.

        ii.   In the pop-up, select the account again and check Full control. Click Apply > Yes. Now click OK in all pop-ups.

3. At the end of the file, you can add the addresses of websites to block. To do this, just add a line at the end of the file, with 127.0.0.1 and then the DNS name of the site you want to block - this will redirect the site's name to your local computer.

4. To block Google, for example, add 127.0.0.1    www.google.com to the end of the file. You can block as many sites as you want this way, but remember you can add only one DNS name per line.

5. Repeat this step until you've added all websites you want to block.

6. Now Save to same location and Close the hosts file. 



Note : If The Website is still not block then you need to Reboot your computer for the changes to take effect and after you'll find that all those websites are now blocked.


How to Block Website On Your Mac


1.    Make sure you have administrator access to your Mac. Now open Terminal. You can find it under /Applications/Utilities/Terminal.

2.    Type sudo nano /etc/hosts and press enter. Enter the user name and password with login when prompted.

3.    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.google.com". For each website you want to block, start a new line and type the same command with only the name of the website being replaced. When done, press ctrl+x and then Y to save the change.

4.    In the command type sudo dscacheutil -flushcache and press Enter or restart your machine to make sure the websites are blocked.


How to Block Website On Browser


On Firefox, you can install an addon called BlockSite to block website.

Install the addon, press ctrl+shift+a, and click Extensions on the left. Now click Options under BlockSite. In the pop-up, click Add and type the name of the website you want blocked. Repeat the process for all websites you want to block and then Click OK.

Now these websites will be blocked on Firefox. You can also set a password in BlockSite to prevent others from editing the list of blocked websites. This can be done via the options menu described in the previous step.

BlockSite is also same for Google Chrome.

Internet Explorer lets you block websites easily. Here's how.

Open the browser and go to Tools (alt+x) > Internet Options. Now click the security tab and then click the red Restricted sites icon. Click the Sites button below the icon.
Now in the pop-up, manually type the websites you want to block one-by-one. Click Add after typing the name of each site. When you done, click Close and click OK in all other windows. Now these websites will be blocked in Internet Explorer.
On your phone or tablet

How to Block Any Website On Your iPhone and iPad


Go to Settings > General > Restrictions.

Tap on Enable Restrictions. Now set a password for restrictions. This should ideally be different from the password you use to unlock the phone.

After the password is set, scroll down and tap Websites. Here you can either choose to limit adult content, or allow access to specific websites only.

In specific websites only, there's a short list of allowed websites including Discovery Kids and Disney, but you can also add sites by tapping on Add a Website.

If you tap Limit adult content, Apple blocks websites that are deemed objectionable, but you can also put to whitelist websites by tapping on Add a Website under Always Allow, or blacklist them by tapping on it under Never Allow.

If you try to access a blocked website, you see restricted message. By Tap on Allow Website you need password to open that website.


How to Block Website On Your Android Phone


On Android, you'll need to edit the hosts file on your device to redirect sites you want to block. You'll need a file manager, and a text editor - the easiest option is to use app ES File Explorer, which lets you do both step.

Install ES File Explorer Open ES File Explorer and tap the "/" button at the top. Tap on system > etc.
In this folder, you'll see the hosts file - tap it and in the pop up menu, tap Next. In the next pop up, tap ES Note Editor.

Tap the three dots button in the top right, and tap edit.

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 "127.0.0.1 www.blockedwebsitename.com" use this.  To block website name is the name of the site you're blocking for each website you want to block. For example, you'll have to type 127.0.0.1 www.google.co.in to block Google.

Reboot your Android device.

If that method is too complex for you, you can install an anti-virus app such as Trend Micro that lets you block websites.

Install the app and run it. Go to Options > Safe surfing.
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 on it, and Click to Add. Now add the websites you want to block. you can enter website one at a time. Once that is done, you won't be able to access these websites on your Android smartphone.


How to Block Any Website On Windows Phone


You can't do a full block of websites on Windows Phone, buy you can download the AVG Family Safety browser. By default it blocks websites with malicious or explicit content, and if you purchase an AVG anti-virus licence and create an account, you can customise the list of blocked websites.


How to Block Any Website On Your Network


If you have a Wi-Fi network at your house, then it is easier to set up block or unwanted websites via your Wi-Fi router. Most routers don't have very user friendly interfaces, so this can be a little daunting and of course, the steps can be different for different - different router, but the basic process you follow is pretty similar, this is actually pretty easy.

Wrong setting could accidentally de-activate your internet connection, so if you get stuck, call your ISP so technician come and fix the problem.

To start, you need to go to your router's settings. Open Browser and type 192.168.0.1 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.

Now you will have to enter username and password of you route. This would set up during the installation of your connection. default username could be admin, and password could be password or blank. If it is not working then check with your ISP and get the correct username and password.

In router we could block websites under Access Management > Filter.
In drop-down menu called Filter type selection. We select URL Filter and type the website you want to block in the URL field. Above this field, there is an option called Active. There are two buttons Yes and No. We select Yes and click to Save. This blocked the website on our network.

The number of website you want to block is limited router to router. This guide should have helped you block websites on almost any device. If you know any other methods to block sites, let us know via the comments. For more tutorials, visit our How to section.