How to Block a Website

Asked By 0 points N/A Posted on -

Hi ,

I just want to know how to block a website example porn site, how can i do that to policy because there many child in my house. and they have a open internet. maybe they browse adult content, what can I do?

Thanks in advance I hope there is a way to block a adult site.

Best Answer by James20
Best Answer
Best Answer
Answered By 0 points N/A #88021

How to Block a Website


Hi dear,

Go to Run and type this


here you can see Host file

Open this file in notepad you click right at that file and then open it with notepad

you can see here local host

After this line you write website which you want block but first write and then write that website

Here i give example for blocking Google site you can give here which you want block

after it save that file and then restart your computer now that website is blocked.


Answered By 0 points N/A #88022

How to Block a Website


If you are using Internet Explorer, follow the following steps;

Step 1. Open Internet Explorer. In the menu bar click tools-Internet options-Content. In the Content Advisor box, click enable. 

Step 2. Click the Approved Sites. Enter the address of the website. Click Never and then OK.

Step 3. Click on the general tab and make sure to select "Users can see websites that have no ratings".

Step 4.  Enter a password.

Step 5. click Ok to safely surf the internet. If you are using Safari, Firefox, or Chrome, follow the following steps.

Step 1. Launch the terminal and type the following command; sudo pico /etc/hosts, you will need to enter a root password.

Step 2. Using your arrow keys navigate down and create a new line in the file.

Step 3. You can block any website by the following format; (example for blocking myspace).

Step 4. Exit and save/etc/hosts by hitting Control+O and then the return key. finally, you will need to flush your DNS cache for the changes to take effect, this is done through the Terminal as well as the following command in 10.6: sudo dscacheutil-flushcache. 

Login/Register to Answer

Related Questions