Blocking a server with hosts.

This is a discussion on Blocking a server with hosts. within the Tech Board forums, part of the Community Boards category; I am well aware that if you redirect a url to your localhost IP that you have effectively blocked access ...

  1. #1
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831

    Blocking a server with hosts.

    I am well aware that if you redirect a url to your localhost IP that you have effectively blocked access to that server, i.e...

    127.0.0.1 a.tribalfusion.com

    ... will kill tribalfusion adds from that server. What happens if you do it the other way round? i.e...

    ninemsn.imrworldwide.com localhost

    ... I can't find that documented where I've searched. Certainly switching the first entry around...

    a.tribalfusion.com 127.0.0.1

    ... does not block the adds.

    The reason I'm asking is that I am having a small war with the
    Red Sherriff spyware firm. Eventually they told me I could deactivate their spy by closing off the servers in hosts, and they helpfully(?) gave me the following lines to add...

    >>>
    server-au.imrworldwide.com localhost
    server-uk.imrworldwide.com localhost
    server-dk.imrworldwide.com localhost
    server-fi.imrworldwide.com localhost
    server-us.imrworldwide.com localhost
    server-nz.imrworldwide.com localhost
    server-sg.imrworldwide.com localhost
    server-se.imrworldwide.com localhost
    server-no.imrworldwide.com localhost
    server-pl.imrworldwide.com localhost
    server-de.imrworldwide.com localhost
    server-by.imrworldwide.com localhost
    server-ee.imrworldwide.com localhost
    server-lv.imrworldwide.com localhost
    server-lt.imrworldwide.com localhost
    server-ru.imrworldwide.com localhost
    server-ua.imrworldwide.com localhost
    server-jp.imrworldwide.com localhost
    server-it.imrworldwide.com localhost
    server-br.imrworldwide.com localhost
    telstra.imrworldwide.com localhost
    ninemsn.imrworldwide.com localhost
    secure-au.imrworldwide.com localhost
    secure-us.imrworldwide.com localhost
    secure-uk.imrworldwide.com localhost
    secure-jp.imrworldwide.com localhost
    <<<

    ... will that work somehow or are they trying to pull a fast one. I don't trust spy firms.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  2. #2
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,825
    Have you tried using ad-aware or anything like that to kill it? I wouldn't trust anything the spyware people said...

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    It was AdAware 6 that told me that the BBC had started using the damn thing!

    I am quite content to have their servers mapped into a black hole. What I am trying to do now is work out if they are deliberately giving false information to enable their damn spy to keep running when people think they have killed it.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  4. #4
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    I use Outpost Firewall, free version. It has ... oh sod it, read the web site to see what it has, but basically it's an all in one thing that has plenty of options, and is simple to use. I ditched Zonealarm for this

    [edit]
    And your hosts file is for one way matching only. You might have something like this in it:
    # 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.
    Also, IIRC, your PC might resolve via DNS first depending on how its configured, in which case no amount of changing the hosts files will work.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  5. #5
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    ZoneAlarm has fixed the bug whereby it caused problems with the Apache 2.x http server.

    >>> And your hosts file is for one way matching only.

    I have always done it that way, but have this as an official solution from RedSherriff. I wanted to see if anyone knew this alternative method. As I said, I've tried it and it doesn't seem to work.

    >>> your PC might resolve via DNS first depending on how its configured

    My system is configured to use hosts first, then my own DNS server, then the ISP's DNS.

    I routinely use hosts to speed up access to certain sites, this one for example. The browser loads the hosts info at startup so when I type in the url, it has the IP and can go straight to the site.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. server client application - (i really need your help)
    By sarahnetworking in forum C Programming
    Replies: 3
    Last Post: 03-01-2008, 09:54 PM
  2. Server Architecture
    By coder8137 in forum Networking/Device Communication
    Replies: 2
    Last Post: 01-29-2008, 10:21 PM
  3. Where's the EPIPE signal?
    By marc.andrysco in forum Networking/Device Communication
    Replies: 0
    Last Post: 12-23-2006, 07:04 PM
  4. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM
  5. socket question
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 07-19-2002, 01:54 PM

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