Help - Search - Members - Calendar
Full Version: Ad Blocking
That's Just Not Right! > KVL's Smart Arses > Computers & Electronics
FCA
here's a post which some of you may find useful.

i'm quoting the post in its entirety, with the sole exception of altering the host of the link file. the guy is a personal friend who works in the IT dept of a local university.

i searched and didn't find anything on this anywhere here.


QUOTE(SnS @ Mar 11 2009, 05:29 PM) *
Some of you may already be using this method for blocking Internet ads, but here it is for those who were not aware.

There is a file in Windows (and other OSs too, but I assume you all use Windows) called the hosts file. It is located at C:\windows\system32\drivers\etc\hosts.

This ad blocking method "tricks" Windows into thinking the ad sites that regular websites link to are located on your computer instead of somewhere out on the Internets.

Your default hosts file should look something like this:

CODE
127.0.0.1       localhost
::1             localhost


"localhost" is your computer.

Here is a snippet from a modified hosts file used for blocking ad sites (the actual file is much longer):

CODE
127.0.0.1       localhost
::1             localhost

127.0.0.1 ads.sapo.pt
127.0.0.1 network.adsmarket.com
127.0.0.1 mm.admob.com
127.0.0.1 www.doubleclick.net
127.0.0.1 ad.doubleclick.net


In this example, when whatever site you visit tries to load an ad from the site ads.sapo.pt, your computer will re-direct to 127.0.0.1 (your PC) where there obviously aren't any ads to load. The effect is that you will see a blank space on the legit website you are visiting where the ad would normally be.

This will also increase the speed at which your browser loads webpages and will decrease the amount of cookies left behind by ad servers.

If you decide to try this out, make a backup copy of your original hosts file before you replace it in case you want to switch it back.

The modified hosts file can be found here. This file came from a reputable source and I am using it myself.

doa12
Yup, there's something here somewhere on that, as I'd mentioned it before. Still good info.

Ah, here it is
error404
I'm not sure if anyone else is experiencing this while visiting The Pirate Bay, but there seems to be ads loading that lock up the page and any links on it until suddenly there is streaming audio. The audio doesn't sound like an advertisement for anything in particular, but more like radio or commercials.

Does this sound like it could be a Java script running? I'll try this and hopefully get it to stop.
KVL
I use adblock plus with firefox, blocks all the ads also. Its a little easier to get going i think, but then again, i am really lazy.
Smash
QUOTE(FCA @ Oct 29 2009, 10:22 PM) *
here's a post which some of you may find useful.

i'm quoting the post in its entirety, with the sole exception of altering the host of the link file. the guy is a personal friend who works in the IT dept of a local university.

i searched and didn't find anything on this anywhere here.


QUOTE(SnS @ Mar 11 2009, 05:29 PM) *
Some of you may already be using this method for blocking Internet ads, but here it is for those who were not aware.

There is a file in Windows (and other OSs too, but I assume you all use Windows) called the hosts file. It is located at C:\windows\system32\drivers\etc\hosts.

This ad blocking method "tricks" Windows into thinking the ad sites that regular websites link to are located on your computer instead of somewhere out on the Internets.

Your default hosts file should look something like this:

CODE
127.0.0.1       localhost
::1             localhost


"localhost" is your computer.

Here is a snippet from a modified hosts file used for blocking ad sites (the actual file is much longer):

CODE
127.0.0.1       localhost
::1             localhost

127.0.0.1 ads.sapo.pt
127.0.0.1 network.adsmarket.com
127.0.0.1 mm.admob.com
127.0.0.1 www.doubleclick.net
127.0.0.1 ad.doubleclick.net


In this example, when whatever site you visit tries to load an ad from the site ads.sapo.pt, your computer will re-direct to 127.0.0.1 (your PC) where there obviously aren't any ads to load. The effect is that you will see a blank space on the legit website you are visiting where the ad would normally be.

This will also increase the speed at which your browser loads webpages and will decrease the amount of cookies left behind by ad servers.

If you decide to try this out, make a backup copy of your original hosts file before you replace it in case you want to switch it back.

The modified hosts file can be found here. This file came from a reputable source and I am using it myself.



I'm a believer of Credit where Credit is Due. FCA - I have been using this since you posted it a while back. And I love it. It's fantastic to prevent a flurry of pop ups and when a pop up does occur, it merely is a blank page.

I can't tell if it is this, or PeerGuardian. But on IPTORRENTS no matter what I can't ever seem to upload, I leech just fine, but none of my torrents ever give back. I never have that problem on puretna.com though. Which is weird.
Kaerthon
QUOTE(KVL @ Nov 29 2009, 12:28 AM) *
I use adblock plus with firefox, blocks all the ads also. Its a little easier to get going i think, but then again, i am really lazy.


do this. editing your hosts file is annoying! plus the domains change, so a changing subscription to a blocking service like this is better. not to mention the convenience of just blocking something you don't like ( like someone signature on tjnr )
fobmagi
I've been using the adblock extension for firefox since it came out. I can't even imagine surfing the internet (especially porn sites) without it.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.