Members
  • Total Members: 14176
  • Latest: toxxxa
Stats
  • Total Posts: 42872
  • Total Topics: 16081
  • Online Today: 4069
  • Online Ever: 51419
  • (01. January 2010., 10:27:49)









Author Topic: Blocking Entire Websites  (Read 2773 times)

0 Members and 1 Guest are viewing this topic.

Samker

  • SCF Administrator
  • *****
  • Posts: 7528
  • KARMA: 322
  • Gender: Male
  • Whatever doesn't kill us makes us stronger.
    • SCforum.info - Samker's Computer Forum
Blocking Entire Websites
« on: 27. September 2007., 11: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 127.0.0.1 localhost
8) skip a line under 127.0.0.1 localhost.
this line should be empty, and under this line here, we will start blocing sites.
9) now we will enter, 127.0.0.2  www.sitename.com   #blocked,  do not add http://
Note: you will need to go up one digit for every site you wish to block.
127.0.0.2,127.0.0.3,127.0.0.4 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:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

127.0.0.1       localhost

127.0.0.2       www.myspace.com   #blocked

127.0.0.3       www.youtube.com      #blocked

127.0.0.4       www.facebook.com     

127.0.0.5  you get the point now.

Note:
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. 127.0.0.3 i would rename 127.0.0.4 to 127.0.0.3 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.?

(AresForum)

Samker's Computer Forum - SCforum.info

Blocking Entire Websites
« on: 27. September 2007., 11: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:
Verification:
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):www.scforum.info:

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

Terms of Use | Privacy Policy | Advertising