• Total Members: 12780
  • Latest: eduard
  • Total Posts: 28039
  • Total Topics: 8052
  • Online Today: 777
  • Online Ever: 51419
  • (01. January 2010., 09:27:49)

Author Topic: Blocking Entire Websites  (Read 1357 times)

0 Members and 1 Guest are viewing this topic.


  • SCF Administrator
  • *****
  • Posts: 7152
  • KARMA: 291
  • Gender: Male
  • Whatever doesn't kill us makes us stronger.
    • - Samker's Computer Forum
Blocking Entire Websites
« on: 27. September 2007., 10:23:50 »
I reccommend saving a copy of the Hosts file, and hiding it somewhere on the computer,
this will become our back up copy should we ever need one

Ok first off we need to open the correct file. let's do that now.

1) open C drive or your designated hard drive, wich is D drive for some user's.
2) go to the windows folder and open it
3) now open the system32 folder
4) open the drivers folder
5) open the etc folder
6) now we see a file called hosts. we need to right click on this file and choose open
with. choose open with, select from list, and we use notepad to open the file.
7) we need to scroll down where we see localhost
8) skip a line under localhost.
this line should be empty, and under this line here, we will start blocing sites.
9) now we will enter,   #blocked,  do not add http://
Note: you will need to go up one digit for every site you wish to block.,, so on so forth.
10) click the close button when your finished and say yes when asked to save changes.

Example of a host file with blocked sites:

# Copyright (c) 1993-1999 Microsoft Corp.
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
# For example:
#          # source server
#              # x client host       localhost   #blocked      #blocked  you get the point now.

to unblock a site just remove it's entry. me personally i would also change the last digit to correspond to the next.
say you remove. i would rename to so on and so forth so i keep them all in order.
easier for me if i go back, i know what number is available, and it doesn't become messy.

i used the #blocked to let me know i blocked them, but that is optional
notice no pound sign's infront of my entries, that is because these are active entries, that the computer will read.
everything else that has a pound sign, is just a comment, and the computer will not recognise that as a command.

if you wish to block ad's on a site, get the site's ip, then enter it like above, but use the sites IP address instead of 127.0.0.?


Samker's Computer Forum -

Blocking Entire Websites
« on: 27. September 2007., 10:23:50 »


With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Name: Email:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
Second Anti-Bot trap, type or simply copy-paste below (only the red letters)

Enter your email address to receive daily email with ' - Samker's Computer Forum' newest content:

Terms of Use | Privacy Policy | Advertising