block access to websites
Moderator: Moderators
-
- Posts: 9
- Joined: 2003-12-09 14:10
block access to websites
is there a way to block a certain website from being accessed on your computer. let's say i wanna block www.sex.com from being accessed from my computer. i tried to edit the hosts file located in the system folder but that doesn't seem to work. any suggestions?
-
- Forum Moderator
- Posts: 587
- Joined: 2003-05-07 02:38
- Location: Sweden, Linkoping
-
- Posts: 9
- Joined: 2003-12-09 14:10
-
- Posts: 9
- Joined: 2003-12-09 14:10
-
- Posts: 9
- Joined: 2003-12-09 14:10
-
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 14:37
-
- Posts: 9
- Joined: 2003-12-09 14:10
-
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 14:37
-
- Posts: 9
- Joined: 2003-12-09 14:10
Run a search in your Windows directory for a file called hosts. It doesn't have an extention. Open that file in Notepad.
It looks like this
Add an entry for the website you want to block. i.e.
It looks like this
Code: Select all
# 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
Code: Select all
127.0.0.1 www.sex.com
-
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 14:37
Actually, it'll be called hosts.sam (sam for "sample"). To be able to use it as Xan1977 suggested, it'll need to be renamed to just "hosts".Xan1977 wrote:Run a search in your Windows directory for a file called hosts. It doesn't have an extention.
If you have legitimate reason to access the particular website, the above method will give you problems, as *no* application will be able to access it.
In the long run, a firewall will be more useful. Seriously.
-
- Posts: 9
- Joined: 2003-12-09 14:10
-
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 14:37