Block Adserversf you wanna remove those nasty ads from the pages which waste lot of time andbandwidth then here is something for you I belive it will help you a lothow it worksIt's possible to set up a name server as authoritative for any domain you choose,allowing you to specify the DNS records for that domain. You can also configuremost computers to be sort of mini-nameservers for themselves, so that they checktheir own DNS records before asking a nameserver. Either way, you get to say whathostname points to what IP address. If you haven't guessed already, the way youblock ads it to provide bogus information about the domains we don't want to see -ie, all those servers out there that dedicate their existence to spewing outbanner ads.The hosts fileProbably the most common way people block ads like this is with something calledthe "hosts file". The hosts file is a simple list of hostnames and theircorresponding IP addresses, which your computer looks at every time you try andcontact a previously unknown hostname. If it finds an entry for the computeryou're trying to reach, it sets the IP address for that computer to be whatever'sin the hosts file.127.0.0.1 is a special IP address which, to a computer, always means thatcomputer. Any time a machine sends a network request to 127.0.0.1, it is talkingto itself. This is very useful when it comes to blocking ads, because all we haveto do is specify the IP address of any ad server to be 127.0.0.1. And to do that,all we have to do is edit the hosts file. What will happen then is something likethis:1. you visit a web page2. the web page contains a banner ad stored on the server "ads.example.com"3. your computer says "ads.example.com? never heard of it. wait a second, let'ssee if I've got the number on me..."4. your computer finds its hosts file and checks to see if ads.example.com islisted5. it finds the hostname, which points to 127.0.0.16. "great", says the computer, and sends off a request to 127.0.0.1 for thebanner ad that's supposed to be on the page7. "oh", says the computer, and fails to show anything because it just sent arequest to itself for a banner adWhere's my hosts file?* Windows 95 / 98 / ME: C:\Windows (I think)* Windows NT: C:\WinNT\hosts* Windows 2000: C:\WinNT\system32\drivers\etc\* Windows XP: C:\Windows\System32\drivers\etc* FreeBSD / Linux / Mac OS X / Unixish operating systems: /etc/hosts* Classic Mac OS: please read this helpful information submitted by David"iNerd" B* Mac OS 9: Marcia Skidmore sent in details that hopefully explain what youneed to knowThe format of the hosts file is very simple - IP address, whitespace, then a listof hostnames (except for older Macs; please see above). However, you don't need to
Leave a Comment