Banning a domain?

This is a discussion on Banning a domain? within the Tech Board forums, part of the Community Boards category; Hello, Is there a way I can ban access to a website's domain on Windows 2000 (Hopefully not IE-specific)? Do ...

  1. #1
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,263

    Banning a domain?

    Hello,

    Is there a way I can ban access to a website's domain on Windows 2000 (Hopefully not IE-specific)? Do I need extra software or can the OS do it?

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,548
    If you're the only user then

    Edit c:\windows\system32\drivers\etc\hosts
    Add something like
    Code:
    127.0.0.1 www.spammer.com
    Anything trying to resolve that address will get loop backed to your local machine, where it will no doubt result in "not found".

    However, this doesn't prevent people using actual IP addresses to access the same domain. For that, you need some kind of firewall.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    Registered User whackaxe's Avatar
    Join Date
    Mar 2004
    Posts
    332
    i tried that using
    "127.0.0.1 lchst" (using win98 mind) to cut loclahost short, and it didn't work :s)

  5. #5
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,263
    Alright, I'll clarify it a bit. I'm trying to stop RealPlayer from updating itself. I wanna stick with version 8, but every time I play an URL it keeps looking to RealNetwork's servers to find an update, and once it's sniffed something new it absolutely will not stop until it updates (You can't play ANY files until it updates).

    Obviously I don't know to what addresses it's referring to to find updates, so a blanket ban on real.com would be nice.

    Been down the hosts route but it only goes for specific DNS entries, not domains. Any ideas on a firewall (ZoneAlarm doesn't seem to do it)?

  6. #6
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,548
    Well the way you find out where it's going is by running ethereal while its trying an update

    Dunno about the firewall thing, like whether you need the pro version of zone alarm or not. I thought the free version allowed you to specify IP addresses to block.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  7. #7
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    if you have a router you can do it internally on the router then you can get around the whole hosts file thing...though I like the hosts file, I use it quite a bit for blocking sites.
    PHP and XML
    Let's talk about SAX

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. domain registration
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 01-20-2007, 03:45 AM
  2. domain name acts somehow strange
    By GanglyLamb in forum Tech Board
    Replies: 5
    Last Post: 09-22-2004, 12:16 PM
  3. registering a domain
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 06-28-2004, 01:13 PM
  4. Domain Resolution :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 5
    Last Post: 08-01-2002, 03:34 PM
  5. MSN Vital Information
    By iain in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 09-22-2001, 08:55 PM

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