How To Block Porn Websites Using Hosts File In Windows

How To Block Porn Websites Using Hosts File In Windows

We all use computers and the internet on a daily basis but the internet has changed completely these days. Everything is running on ads and when you open a website you will get automatically redirected to another website in a new tab of your browser. There is no solution to stop those ads because the instructions are pre-defined by the website admin instead you can just block those ads and stay safe.

The main problem with advertisements is that they have pornographic ads and that will affect your and whoever is sitting next to you very harmfully. Also, you can block porn websites on your computer as they have viruses and can cause a lot of trouble so even when your friends are browsing by using your computer they won’t be able to access those websites.

Here are the steps below to block pornographic ads and websites using Host File:

Step 1. All you need to do is just go to local disk C:\Windows\System32\drivers\etc because local disc c will have all your windows files.

Image result for C:\Windows\System32\drivers

If you have installed your operating system in other drives then choose that drive.

Step 2. Now you will find a file named “hosts”. Open that file with any text editor like notepad as shown in the pic below.

Image result for C:\Windows\System32\drivers

Step 3. Once you have opened the host file, there you will see two lines with i.p.

1: 127.0.0.1 localhost

2: ::1 localhost

Step 4. Now you need to add this line with 127.0.0.* and add the website that you want to block.

1: 127.0.0.1 localhost

2: ::1 localhost

3: 127.0.0.2 www.yourpornwebsite.com

Step 5. You can block several numbers of websites that are malicious to your computer and also you can block non-pornographic websites too.

For example:

1: 127.0.0.1 www.google.com

2: 127.0.0.1 faebook.com

3: 127.0.0.1 yahoo.com

This is the best and easy way to block any websites on your computer or laptop that is running windows. There are other methods out there but they are time-consuming and complex.

Related Post