URL / IP blocking in Win2K ?

Is there a way to block access to certain URL's & IP adresses in Win2K by foraging in the registry or something? I want to use this techique to block against adservers ect.. I don't want to install 3rd party programs and stuff if it can be don...




Topic Options
#94504 - 03/20/02 05:14 PM URL / IP blocking in Win2K ?
reversing_drive Offline
member

Registered: 07/26/01
Posts: 137
Is there a way to block access to certain URL's & IP adresses in Win2K by foraging in the registry or something?

I want to use this techique to block against adservers ect..
I don't want to install 3rd party programs and stuff if it can be done mauallly in 2K.

I heard it can be done in XP somehow, but how do i do it in Win2K?
Oh.. if you know, for that matter is it possible in NT4?

Win2K SP2, IE5.5 SP2,
NT4, IE6

Cheers,

Top
Advertisement
#94509 - 03/20/02 06:44 PM Re: URL / IP blocking in Win2K ?
clutch Offline
Carpal Tunnel

Registered: 03/29/00
Posts: 3859
Go to %windir%\system32\drivers\etc and open the "hosts" file in notepad. Then, just put in the domain names that you want to "block" and the IP that you want the requests to go to (like 127.0.0.1). The hosts file will be scanned first before your DNS servers, so anything listed on here will be resolved from this file rather than an outside source. To test this, enter your domain name and IP that you want to block, and then bring up the command prompt. From there, type "ipconfig /flushdns" and that will flush out any DNS mappings that are already in the localhost. Then, ping the domain name that you listed.

Top
#94569 - 03/21/02 09:14 AM Re: URL / IP blocking in Win2K ?
reversing_drive Offline
member

Registered: 07/26/01
Posts: 137
This sounds just like what i was after, thanks..:D

However i am not quite with you in configuring this file, and i just realised that i am not sure how to get the IP adress for a specific URL.

Say i want to block anything and everything at the domain www.yahoo.com , including www.yahoo.com/subcategories/

What would be the snippet of text i would put in the hosts file?

Thanks heaps Clutch,
Cheers.

Top
#94576 - 03/21/02 11:25 AM Re: URL / IP blocking in Win2K ?
Xiven Offline
addict

Registered: 05/21/00
Posts: 690
127.0.0.1 [url=www.yahoo.com]www.yahoo.com[/url]


will block everything at [url=www.yahoo.com]www.yahoo.com[/url]

Top
#94991 - 03/26/02 12:51 PM Re: URL / IP blocking in Win2K ?
reversing_drive Offline
member

Registered: 07/26/01
Posts: 137
Quote:
[B]# 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
-- Removed examples --


Is this a valid configuration of the hosts file?
Any tips on how this would affect browsing the net would be greatly appreciated,
Thanks Guys.

Cheers,

Top
#95007 - 03/26/02 04:20 PM Re: URL / IP blocking in Win2K ?
clutch Offline
Carpal Tunnel

Registered: 03/29/00
Posts: 3859
Well, I am not sure about the geocities one with the slash in it, but other than that it looks fine. As for browsing, it *should* speed it up a slight amount as your system will not only be saved the time of resolving those network names, but it will also save the system time in downloading anything from those sites.

Top
#95100 - 03/27/02 05:28 PM Re: URL / IP blocking in Win2K ?
reversing_drive Offline
member

Registered: 07/26/01
Posts: 137
Thanks,

I find tis really neat:D

Funny i have never heard of this before or seen utilities or plugins which tweak this file for blocking.

Cheers,

Top


Forums
Windows Support Forums
Everything New Technology
Legacy OS
Hardware
Software
Games
Networking
Customization & Tweaking
Security

Linux Support Forums
Everything Linux
Linux Hardware
Linux Software
Linux Games
Linux Networking
Linux Customization & Tweaking
Linux Security

Apple Support Forums
Everything Apple
Recent Topics
Router keeps disconnecting internet
by rfboyd
Today at 04:18 PM
Program Running When Starting Computer
by cbk
Yesterday at 11:05 AM
System Crashing Error 1000008e, 1000000a, 0000004e
by PapaPrem
11/30/09 06:01 PM
Starcraft Broodwar Campaign Crash Problem
by Lurker02
11/30/09 12:33 PM
How do I affect the order of ALT-Tab?
by KenJackson
11/28/09 10:10 PM
Who's Online
1 Registered (danleff), 277 Guests and 31 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
91268 Members
24 Forums
58353 Topics
188849 Posts

Max Online: 1079 @ 03/12/08 01:36 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22