Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

HOST File /Loopback questions?

Ok I have used the HOST file to block some websites, but instead of the defult page were it comes back as the page is not responding or something I want to make a custom page that way its easy for every one else to tell if I blocked it or if the page is not working. I know how to 'map' the page so i can take myspace to yahoo home. but I want to make a custom page. and I know that if i use a free hosting site it links to there home page and not my page. So is there a way to make a file have an IP address that is on my pc??? or is there a way to link the 127.0.0.1 to a html page saved on the pc???

Any help would be great!!!!

1 Answer

Relevance
  • Bob M
    Lv 5
    1 decade ago
    Favorite Answer

    Blocking via the hosts file isn't a great system, it is fairly inflexible for a start. Lets say you do this -

    127.0.0.1 ad.doubleclick.net

    So that when ad.doubleclick.net tries to communicate home, it loops to local so it fails, which is what you want.

    Much better to make use of the browser's ability to block, because you can block using wild cards and it is easier to block on-the-fly depending on page content. Such as blocking that flashy advert that stops you reading for favourite web site.

    You will also find that using hosts file is slower, I know, it ought to be quicker, but it isn't.

    Anyway, to answer your question, you do not have to loop back, you can instead supply an IP that points to a page you have prepared.

    192.168.1.100 ad.doubleclick.net

    For those wanting to try the hosts file to block, then here is a link to one with many of the known nasties blocked.

Still have questions? Get your answers by asking now.