Click to See Complete Forum and Search --> : My Junkbuster blockfile


Craig McPherson
12-18-1999, 03:53 PM
This will likely eliminate 99% of banner ads you come across:


#These servers host TONS of banner ads, most of
#the banner ads you'll find on the web, in fact.
#Block them entirely, kills 90% of ads.
doubleclick.net
imgis.com
209.207.224.220
img.stamps.com
flycast.com
imaginemedia.com
linkexchange.com
burstnet.com
adfu.blockstackers.com

#Now a few directories that ads are often stored
#in on web servers.
/ad_images/
/cgi-bin/nph-load
/netscapeworld/nw-ad/
/worldnet/ad.cgi
/promotions/
/rotads/
/rotateads/
/rotations/
/promotions/houseads/
/A/AF/AFL/
/ad/
/ads/
/adverts/
/banners/
/banner/
#Thanks to LNO for this next one
/ads2/

#Now we go for the kill...
ad_*.*
ad.*.*
ad.*.*.*
ad.*.*.*.*
ads.*.*
ads.*.*.*
ads.*.*.*.*
adv.*.*
adv.*.*.*
adv.*.*.*.*
advert*.*
advert*.*.*
advert*.*.*.*
adbot*.*
adbot*.*.*
adbot*.*.*.*
adlink*.*
adlink*.*.*
adlink*.*.*.*
adserv*.*
adserv*.*.*
adserv*.*.*.*
werbung*.*
werbung*.*.*
werbung*.*.*.*
count*.*
count*.*.*
count*.*.*.*
banner*.*
banner*.*.*
banner*.*.*.*
athand*

#And block a few ports that the proxy shouldn't be accessing
:22
:23
:25
:79
:31337


There you go....... that, along with a properly configured Junkbuster, will SET YOU FREE from banner ads.

If you ever DO see a banner ad, just update the block file to correct the error. You'll never see it again. http://www.linuxnewbie.org/ubb/smile.gif

snaKmeat
12-19-1999, 02:40 AM
Awesome.

I just ammended my blocklist file with these entries and I've yet to get a bandwidth choking banner.

searcher
12-19-1999, 02:48 PM
Thanks Craig. I'll have to compare that to the one I get at http://www.waldherr.org/blocklist

[This message has been edited by searcher (edited 19 December 1999).]

ghorton
01-11-2000, 11:20 PM
Stupid Windows trick:

Look in your Windows directory for a file named hosts.sam. Open this in notepad and add the following lines:

doubleclick.net 127.0.0.1
imgis.com 127.0.0.1
img.stamps.com 127.0.0.1
flycast.com 127.0.0.1
imaginemedia.com 127.0.0.1
linkexchange.com 127.0.0.1
burstnet.com 127.0.0.1
adfu.blockstackers.com 127.0.0.1

Save the file as "hosts" (you need to quotes to prevent notepad from sticking an extension on it). This will force Windows to look at 127.0.0.1 for all of the above domains. That's your computer, and you don't have those ads, so you see a blank box instead.

You can pull the same trick in Linux in your /etc/hosts file, I think, though the 127.0.0.1 would go before the domain name instead of after. Junkbusters is probably the way to go, though.

Sterling
01-12-2000, 06:02 PM
Ghorton: This trick doesn't seem to be working on my Win95 system (I'd use Linux, but this thing has a built-in Winmodem and its a laptop...). Could you please clarify? Do you add those lines to hosts or hosts.sam? Does the IP number go before the hostname (as with the localhost example hosts.sam starts with) or after? And do you have to reboot to get it to take effect?

------------------

-Sterling
"A mere accumulation of observational evidence is not proof"
-Death, Terry Pratchett's Hogfather.

ghorton
01-12-2000, 06:20 PM
It goes in hosts, without an extension. (I guess the .sam on the one that MS provides means sample). Hostname first, address second.

If you've already been browsing, it may take a while for your PC's DNS cache to clear, so the changes will probably not take effect immediately. Restarting the browser may well fix it, waiting a while almost certainly will, and rebooting is 99.9% guaranteed.

Sterling
01-13-2000, 05:09 PM
Why I was asking was because of the following lines in my host.sam:
# 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.

I'm running Windows 95, so things may be a bit different. Which Windows are you running?

As a note, I hate windows and prefer Linux. However, this is a laptop and, as such, has a WinModem. http://www.linuxnewbie.org/ubb/frown.gif And a tiny hard disk.

[This message has been edited by Sterling (edited 13 January 2000).]

ghorton
01-13-2000, 06:11 PM
98. You're right, I blew it (that's what I get for typing from memory). http://www.linuxnewbie.org/ubb/redface.gif

kbug
01-14-2000, 10:37 PM
Hey where dyou put this junkbuster stuff to block the ads??????

w12talon
01-15-2000, 03:56 AM
I belive THIS (http://www.junkbusters.com/ht/en/ijbdist.html#platforms) is the place you want to go, to get the junkbuster program.


------------------
------------
Thus the metric system did not really catch on in the United States, unless you count the increasing popularity of the nine
milimeter bullet. -Dave Barry

error27
01-16-2000, 12:27 AM
ok. Installed junkbuster and set up the blockfile. Now what do I do?

How do I set netscape up to use a proxy?

[This message has been edited by error27 (edited 16 January 2000).]

Sterling
01-16-2000, 06:10 PM
Proxies are under the advanced sub-menu of preferences.

------------------

-Sterling
"A mere accumulation of observational evidence is not proof"
-Death, Terry Pratchett's Hogfather.

error27
01-16-2000, 09:25 PM
I must be dumb but I don't see anything about proxies under advanced preferences. I'm using netscape 4.7 (only the navigator.) I went to [edit] [preferences] [advanced]

there was stuff about loading images, java, ftp and cookies. But i didn't see anything about proxies.

pwrhouse
01-16-2000, 11:48 PM
Click on the down arrow next to advanced to expand it and you should see proxies.

tcrompton
01-16-2000, 11:57 PM
You need to click on the little triangle beside [Advanced]. That'll expand that option to show the [Cache] and [Proxies] options.

BTW, if your reading this and don't have JunkBuster, go get it!

JunkBuster is awesome and very easy to install. After you get it running, you won't be able to live without it!

error27
01-17-2000, 02:27 AM
I am now [almost] totally addfree. http://www.linuxnewbie.org/ubb/smile.gif

here's the complete Debian quide.

1) download Junkbuster with dselect.
2) copy craig's blockfile into /etc/junkbuster/blockfile
3) type junkbuster /etc/junkbuster/config -b /etc/junkbuster/blockfile &
4) goto preferences, advanced, proxy, manual. type in for http "localhost" and port 5865

5) goto /etc/junkbuster/cookiefile and add a ">slashdot.org" don't forget to leave a blank line at the end of the file.

keninman
01-22-2000, 07:33 AM
I edited my /ect/hosts file and used the address's listed by ghorton. Many of them I had to add "www." in front of though. I was using junkbuster but after trying this trick of ghorton's I found my pages load alot faster than through the junkbuster proxy and the banner ad's are gone. http://www.linuxnewbie.org/ubb/smile.gif

MkIII_Supra
01-23-2000, 05:48 AM
Okay the script written by Craig go in the /etc/hosts.deny correct? I am still not very good at figuring out where and how to use scripts. I am learning but.....
So I would open my /etc/hosts.deny then type in the code Craig wrote then go to Netscape and edit a file up there (I'll read it as soon as I get the code thing figured out.) ANd that will stop banners and adds?
I also see references to blocklist file, I am assuming that is the file that blocked IP's are recorded in correct?


------------------
The Dragon is swift and powerful. Beware his wrath...
I am not perfect. I am human.
Home Page: http://home.san.rr.com/mk3supra

Craig McPherson
01-23-2000, 08:31 PM
That is a blockfile for the Junkbuster proxy. It goes in /etc/junkbuster/blockfile.

It's best to have an init script start junkbuster at bootup. Once Junkbuster is running, just specify "localhost" as your proxy server in the Netscape advanced preferences, with the port number you specified in the Junkbuster configuration file. (I run Junkbuster on port 8000, because that's one of the standard ports for proxy servers)

You can also configure junkbuster to modify your outgoing HTTP headers so that sites won't be able to tell what browser/OS you're using, or what web page you last visited. This will cause problems with some sites, but fortunately Netscape has a field in the advanced preferences to access some sites directly rather than through the proxy.

MkIII_Supra
01-23-2000, 10:39 PM
Do I have to reboot the system? Can I start the junk buster another way?

------------------
The Dragon is swift and powerful. Beware his wrath...
I am not perfect. I am human.
Home Page: http://home.san.rr.com/mk3supra

Craig McPherson
01-24-2000, 12:09 AM
Here's an init script for Junkbuster:


#! /bin/sh

PATH=/bin:/usr/bin:/sbin:/usr/sbin
DAEMON=/usr/sbin/junkbuster
FLAGS="defaults 50"

test -f $DAEMON | | exit 0

case "$1" in
start)
echo -n "Starting filtering proxy server: junkbuster"
su nobody -c "PATH=\"$PATH\" start-stop-daemon --start --quiet --exec $DAEMON -- /etc/junkbuster/config" &
echo .
;;
stop)
echo -n "Stopping filtering proxy server: junkbuster"
start-stop-daemon --stop --quiet --exec $DAEMON
echo .
;;
restart|force-reload)
sh $0 stop
sh $0 start
;;
*)
echo "Usage: /etc/init.d/junkbuster {start|stop|restart|force-reload}"
exit 1
;;
esac

exit 0


Then you can start it like this:

/etc/init.d/junkbuster start

Stop it like this:

/etc/init.d/junkbuster stop

Restart it like this:

/etc/init.d/junkbuster restart

You DON'T have to restart Junkbuster every time you make changes to the blockfile, which is a nice feature. You DO have to restart Junkbuster if you change the main configuration file to tell it to run on another port or something.

Strike
01-24-2000, 12:20 AM
Hey Craig, many thanks! As I post this, I see the nice "broken link to picture" picture sitting nicely at the top of the screen, thanks to your blockfile augmenting the standard one that came with it.

Craig McPherson
01-24-2000, 03:08 AM
Hooray! Now you can sleep comfortably, knowing that you're cheating your favorite not-for-profit web sites out of the advertising revenue that they need in order to survive and continue to bring you, for free the quality content you've come to expect! http://www.linuxnewbie.org/ubb/smile.gif http://www.linuxnewbie.org/ubb/smile.gif http://www.linuxnewbie.org/ubb/smile.gif http://www.linuxnewbie.org/ubb/smile.gif http://www.linuxnewbie.org/ubb/smile.gif

LOL, I guess there's a dark side to everything. I just really, REALLY hate banner ads.

6plpy
01-26-2000, 01:23 AM
Does it have the same effect if I just list all those web/ip addresses in hosts.deny??

Paul

Craig McPherson
01-26-2000, 03:18 PM
No, hosts.deny handles INCOMING connections.

You can edit /etc/hosts to block entire IP's and domains by making them point back to localhost, but you can't specify addresses like you can with Junkbuster. Therefore, you have no protection against ads stored on the same server as the content you're viewing, which is a frequent thing to see.

You'd be surprised how much junk you can kill just by banning any URL containing these directories in Junkbuster:

/ad/
/ads/
/banner/
/banners/

You'd like web servers would wise up, realize that people are running Junkbuster, and put their ads in a less obvious directory. http://www.linuxnewbie.org/ubb/smile.gif

pwrhouse
01-28-2000, 09:03 PM
Has anyone else had trouble with Netscape 4.7 & junkbuster.
It works great with navigator 4.5 but for some reason it just gives me errors when I try to load a page when I upgraded to 4.7.

By the way the error I got was :

Internet JUNKBUSTER

TCP connection to 'home.netscape.com' failed: Operation not permitted.

Thanks for any help you can give.

Craig McPherson
01-28-2000, 09:24 PM
Working just great here.

Kint
01-31-2000, 09:07 AM
I'd recommend putting Craig's excellent Junkbuster script in /etc/junkbuster/blockfile.local and using the 2 scripts (junkbuster.weekly , junkbuster.monthly) provided with the latest version of Junkbuster to automagically update your blocklist with the latest protection.

Oddly enough, the 2 scripts are copied by default in your /doc/junkbuster directory. Just copy them to /etc/cron.weekly and /etc/cron.monthly respectively, and you won't have to lift a finger to update.

I recommend having a look at the 2 scripts. You might want to create all the .local files as root with the command touch to prevent some error messages. Those scripts copy what's in your blocklist to a temp file, get a new blocklist, and append your old stuff + whatever you put in blocklist.local in the new blocklist.

Enjoy !



------------------
Kint
kint@sympatico.ca

puff
02-06-2000, 07:15 PM
Junkbuster is working great for me. Thank you for starting this thread or I would have never tried it

tmchow
02-09-2000, 04:14 AM
FWIW, in Windows you have to put:

127.0.0.1 doubleclick.net
127.0.0.1 img.stamps.com
127.0.0.1 imgis.com
127.0.0.1 flycast.com
127.0.0.1 imaginemedia.com
127.0.0.1 linkexchange.com
127.0.0.1 burstnet.com
127.0.0.1 adfu.blockstackers.com

in the "hosts" file ss opposed to the reverse order listed above. If you reverse it (and put hostname first, then Ip) it won't have the desired effect.

reas0n
02-13-2000, 04:38 PM
w0w! This is great, anytime I see a banner (which is rare) I just add the ad server to my blockfile, refresh, and the ad is gone! btw, another server to add is "valueclick.com"

Craig McPherson
09-05-2000, 02:26 AM
Add iplanet.com (these marketing firms multiply like rabbits on viagra).

You might also want to add akamai.net and akamaitech.net. Many buy websites host some of their content (mainly images) with Akamai, which provides load balancing and high-capacity access. There's a lot of advertisements hosted with Akamai, but there's also some legitimate content there to, so you might eventually see some broken legit images if you Junkbust Akamai out of existence.

joweilee
09-05-2000, 05:42 AM
Could this be the start of an OBESE blockfile.local? http://www.linuxnewbie.org/ubb/biggrin.gif

Darth Tminos
09-08-2000, 12:23 PM
My block file is 4 lines longer than yours!

Craig McPherson
10-03-2000, 11:04 AM
echo "#Really? Is it?" >> /etc/junkbuster/blockfile
echo "#We'll see about that..." >> /etc/junkbuster/blockfile
echo "#Hmm, well, getting close!" >> /etc/junkbuster/blockfile
echo "#Why, look, it seems we're tied!" >> /etc/junkbuster/blockfile
echo "#BAM!!!" >> /etc/junkbuster/blockfile

Of course, in real life, I'd probably accidently type ">" instead of ">>" at least once, and nuke my whole file.

blackwolf_c
12-26-2000, 09:18 PM
ok all.... I am running win2000 and it seems
it is lmhosts.sam, I did what you say except it is LMhosts and it doesnt seem to be working... maybe I should reboot though....
heh I guess impatiente is getting to me time to reboot win2k, first time in a day now hehe

------------------
if anyone wishes to contact me, please do so by my email. I just don't re-read posts too often. thanks.

Sincerely,
Jacob 'BlackWolf' Casper

btberch
12-26-2000, 09:45 PM
Can someone point me in the right direction to get junkbuster for slack?

thanks
btberch

blackwolf_c
12-26-2000, 10:28 PM
damn still seeing banners.....

------------------
if anyone wishes to contact me, please do so by my email. I just don't re-read posts too often. thanks.

Sincerely,
Jacob 'BlackWolf' Casper