Login Register
The stories and information posted here are artistic works of fiction and falsehood. Only a fool would take anything posted here as fact.


Tutorial How To Block Some Ads Via 127.0.0.1 filter_list
Author
Message
How To Block Some Ads Via 127.0.0.1 #1
Block AdServers
if you wanna remove those nasty ads from the pages which waste lot of time and bandwidth then here is something for you I belive it will help you a lot


how it works:
It'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 configure most computers to be sort of mini-nameservers for themselves, so that they check their own DNS records before asking a nameserver. Either way, you get to say what hostname points to what IP address. If you haven't guessed already, the way you block 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 out banner ads.

The hosts file:
Probably the most common way people block ads like this is with something called the "hosts file". The hosts file is a simple list of hostnames and their corresponding IP addresses, which your computer looks at every time you try and contact a previously unknown hostname. If it finds an entry for the computer you're trying to reach, it sets the IP address for that computer to be whatever's in the hosts file.
127.0.0.1 is a special IP address which, to a computer, always means that computer. Any time a machine sends a network request to 127.0.0.1, it is talking to itself. This is very useful when it comes to blocking ads, because all we have to 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 like this:

1. you visit a web page
2. 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's see if I've got the number on me..."
4. your computer finds its hosts file and checks to see if ads.example.com is listed
5. it finds the hostname, which points to 127.0.0.1
6. "great", says the computer, and sends off a request to 127.0.0.1 for the banner ad that's supposed to be on the page
7. "oh", says the computer, and fails to show anything because it just sent a request to itself for a banner ad

Where'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
* Windows vista/7/8: No idea.
* FreeBSD / Linux / Mac OS X / Unixish operating systems: /etc/hosts

Here's some CopyPasta you might like
http://www.mediafire.com/?dh08scd7k9hhh89

https://www.virustotal.com/en/file/cab75...374647147/
[Image: twyq7AI.gif]

Reply

RE: How To Block Some Ads Via 127.0.0.1 #2
Good TuT for those who didn't know this already. Although personally I prefer ads. Don't get me wrong I've seen a lot of crap, but once in awhile there are some diamonds in the rough.

Reply

RE: How To Block Some Ads Via 127.0.0.1 #3
Great share Smile

http://pgl.yoyo.org/as/

Reply

RE: How To Block Some Ads Via 127.0.0.1 #4
(08-08-2013, 09:01 AM)Cosmic Wrote: Great share Smile

http://pgl.yoyo.org/as/

lol what is that
"http://pgl.yoyo.org/as/"
[Image: twyq7AI.gif]

Reply

RE: How To Block Some Ads Via 127.0.0.1 #5
Very good tutorial! I have all my ads blocked Tongue
OT: I thought the title said how to block Aids for some reason..

Reply

RE: How To Block Some Ads Via 127.0.0.1 #6
(08-09-2013, 05:05 AM)Film Wrote: Very good tutorial! I have all my ads blocked Tongue
OT: I thought the title said how to block Aids for some reason..

Wanna blocks Aids? here is a method

1)Have sex.
2)Suicide


LOL
[Image: twyq7AI.gif]

Reply

RE: How To Block Some Ads Via 127.0.0.1 #7
(08-10-2013, 05:03 PM)YSL Wrote: Or you can just get adblock...

or you can reread the conversation.
[Image: twyq7AI.gif]

Reply

RE: How To Block Some Ads Via 127.0.0.1 #8
Thank you for sharing, useful information.

Reply







Users browsing this thread: 1 Guest(s)