Secure, faster browsing

andries

New Member
Joined
Feb 9, 2006
Messages
4
Reaction score
0
Lol about this:
I use a 45 000-line hosts file together with a 350-line filter (not Adblock!). Together they block all known malware sites on earth and the hosts file is essentially bloatless.
I surf faster on my home DSL and save bandwidth by not downloading ads and graphics.
Firefox loads the New York Times website in about 8 seconds. Without the setup it shoots up to 10 seconds or more. IE also loads things noticeably faster.
Security+speed+less bandwidth. It works for me.
Its simple to set up but a few tricks are needed to prevent things like timeout delays and to keep everything lean and mean.
Any interest in setting it up on your system?
 
How about a mini-howto? And post the hosts file somewhere for us too look at?
 
Thanks for the link antibody, I got a hosts from somewhere else, just wanted to see andries' one, because the one I am using dosent contain 45000 lines...
 
I'd like to know what the filter is if its not adblock, I like using a filter thats built into my browser bbut this souds good. 'seblief andries can we have it?
 
Mini-Howto

rsachoc said:
How about a mini-howto? And post the hosts file somewhere for us too look at?
I'm writing the mini-howto but I'm afraid it's turning into a maxi-howto.
I will post to Rapidshare as soon as the maxi is ready. Thanks for the link, Andres101.
Need some help though. Is there any .js fundi out there who can make the following script run in that nifty free text and programmers' editor PsPad?
________________
var lines = new Array();
for( i=0; i<Document.LineCount; i++ ) {
var line = Document.Line(i);
if( line.match( /180solutions|247realmedia|2o7|a1|abetterinternet|accessplugin|ad|ad1|ad2|ad3|ad4|adbureau|addfreestats|adlink|ads|ads1|ads2|ads3|ads4|ads5|adserv|adserver|adserver1|adtech|adultfriendfinder|adv|advance|advert|advertising|advertserve|adx|affiliate|affiliates|alexa|allowednet|andlotsmore|x10|xiti|xxxcounter|yesadvertising|zakatron|zedo/ ) ) {
continue;
}
lines.push(line);
}
Document.Text = lines.join("\n");
_________________

If he can make it run, great.
Even better:
Adapt it to use a list of filter keywords as input to strip all lines containing a keyword from a typical hosts file.
Here's the .txt format of the input file:
dialer
popup
trojan
worm
That will shrink the maxi-howto back to a mini, I hope.
 
[Adblock]
!Filterset.G-Whitelist-Beta[http://www.pierceive.com/]=wb-2005-10-31a
!Filterset.G[http://www.pierceive.com/]=2006-02-03a
/(\Wadv|banner|promo)s?(\.(?!wunder)\w+\.\w{2,3}(\.\w{2,2})?/|\W\w*\d+x\d+\.)(?!banners)/
/(absolute|ad|aff(/|iliate.*)|assets/|live-?|net|partypoker.*|professor|sales|serve|user|video|view|werbe)_?banner/
/(amazon\.\w+.*|barnesandnoble\.com/p.*)(&search=|amb%5F(gw|skin)|amzban|banner|cm\?t|marketing(/2|.+html)|promo|stripe?s?\W|tcg.*\.[gj])/
/(be|context|impresiones)web\.com/
/(bf|flyc|unic)ast\.com/
/(bravenetmedia|mg|openad)network\.com/
/(casaleme|rightme|travi|vibrantme)dia/
/(dtm|reactiv|regiede)pub\.com/
/(jupiter|mercury)\.bravenet/
/.(ad|ncs)reporting\.com/
//(adt|dclk)\./
//ccas(\.clearchannel|_media/)/
/[/&](affiliates?|revenue)((.*\d+x)?\d+|\.pl|\.swf|fuel|/(banner|script)s?/)/
/[/.]overture(/|.*?.*=|\w*\.js|\.com)/
/[^\w=+]promo(\w*\.js|banner|box)(?!(\.js)?\?)(\W|_|$)/
/[^a-z\d=+%@](?!\d{5,})(\w*\d+x\d)?\d*(show)?(\w{3,}%20|alligator|avs|barter|blog|box|central|context|crystal|d?html|exchange|external|forum|front|fuse|gen|get|house|hover|http|i?frame|inline|instant|live|main|mspace|net|partner|php|primary|provider|redir\W.*\W|rotated?|secure|side|smart|sponsor|story|text|view|web)?_?ads?(v?(bot|brite|broker|bureau|butler|cent(er|ric)|click|client|content|coun(cil|t(er)?)|creative|cycle|data(id)?|engage|entry|er(tis\w+|t(pro)?|ve?r?)|farm|force|form|frame(generator)?|gen|gif|groupid|head|ima?ge?|index|info|js|juggler|layer|legend|link|log|man(ager)?|max|mentor(serve)?|meta\.com|net|optimi[sz]er|parser|peeps|pic|po(ol|pup|sition)|proof|q\.nextag|re(dire?c?t?|mote|volver)|rom\.net|rotator|sale|script|sdk|sfac|size|so(lution|nar|urce)|space|srv|stat.*\.asp|sys|(tag)?track|trix|type|view|vt|x\.nu|zone))?s?\d*(status)?\d*(?!\.org)[\W_](?!\w+\.(ac\.|edu)|astra|aware|adurl=|block|login|nl/|sears/|.*(&sbc|\.(wmv|rm)))/
/[^a-z\d=+](get|web)?_?spons?(or(ed|s))?_?(links?)?(pots?)?(\W|_|$)(?!.*sigalert)/
/[^a-z\d=+]\d*((cible|com|context|double|euro(s4)?|fast|fine|pay-by-|precision|smart|specific|value)_?clicks?|clicks?(2net|adhere|ban\.php|bank\.net|over|sor\.com|tag|thrutraffic|trade|xchange))(\W|$)(?!but)/
/[^a-z]banners?[/._-]?(.*(\d+x\d+\.swf|\.f?pl|_hits\.asp\?|redir|siteid=)|\.(cgi|js|php)|ad|affiliate|central|click|connect|count|current|exchange|file|grocery|id|man(age(ment|r)|ia)|newsletter|/_?promo|/rotat|/?script|serve|skyscraper|space\.|swap|tausch|trust)/
/\.(adquest|site-id|geldrace)\.nl/
/\.emediate.\w{2,3}/
/\W(absolutebm|aff_manager|annon(s(er)?|coer)|anzeigenklick|bannerit|centrport|clickad|clk_thru|contextuallinks?|falkag|klipmart|mainos(include)?|mediaturf|nyadmcncserve|offerfusion|partnermanager|paypopup|redirect.*banner|sitecatalyst|tacoda|tns-gallup|weborama|werbung|(hit|spin|google/)box(?!\.org))[\W_]/
/\W(adcase|(affiliate|popdown|view4)cash|allsponsor|deluxelink|gonamic|ivwbox|mediavantage|pay4klick|popexchange|ptadsrv|superclix|tfag|webmaster24|zanox-affiliate)\.de/
/\Wad(id=(?!$)|v(\W.*track|(/[^/]+|\d+)\.[gjs])|/house|renaline(\.cz|sk\.sk))/
/\Wimg(is|ehost)\.com/
/\Woverlay.js/
/\d+x\d+.*scraper/
/about.com/\d/(?!.*\.js)/
/banman(\.asp|pro)/
/bs\d{3,}\.gmx/
/direct(ivepub|orym|track)\.com/
/imdb.com.*\.swf/
/instant(attention|buzz)\.com/
/intelli(-direct\.com|srv\.(js|net)|txt)/
/inter(click|polls)\.com/
/link(buddies|exchange|share|synergy)/
/market(ing(/images/\d|/?promo)|banker\.com)/
/media((next|plazza)\.com|onenetwork\.net)/
/oasis(i.{0,3}\.php|\.zmh)/
/partner(\.eniro\.|2profit\.com)/
/popu(larix\.com|nder\W|pad\W|pkp)/
/qks(rv|z)\.net/
/regnow\.com.*promos/
/resellerratings\.com.*\.pl/
/search(cactus|feed)\.com/
/shopping.msn.com/.*ptnrId=/
/sonnerie.*get.top/
/traffic(mp|system)\.com/
/yimg\.com(.*/adv/|/a[^u])(?!vision)/
0instant.com
1100i.com
125x125.com
265.com
2o7.net
@@.buy.com
@@.cars.com
@@.mlb.com
@@.mozilla.org
@@.npr.org
@@.oed.com/
@@/#div.*(contextclick|intellitxt)/
@@/&ads=(0|false)/
@@/[-/]\d{1,3}ad\d{1,3}[-/]/
@@/\.(edu|gov(\.\w{2})?|mil)//
@@/\.google\.\w{2,3}/search\?/
@@/\.wiki[mp]edia\./
@@/\Wclassifieds?\W/
@@/\Whide_ads=1\W/
@@/foxnews.*adstream/
@@/index.html?$
@@/products.*#div/
@@://192.168.
@@://download.
@@live365.com
@@mail.google.com
@@news.yahoo.com
@@personals.yahoo.com
action.ientry.net
adi.meinberlin.de
adserveredirect
afcyhf.com
affistats.com
aftrack.asp
anrdoezrs.net
artbanners/task,clk
atdmt.com
atwola.com
audiencematch.net
avolutia.com
awaps.net
awltovhc.com
awrz.net
baventures.com
bbmedia.cz
belnk.com
bidvertiser.com
bluestreak.com
bncnt.com
bns1.net
bridgetrack.com
bs.yandex.ru
budsinc.com
cashregie.com
cc-dt.com
checkm8.com
chitika.net
cjt1.net
commission-junction.com
connextra.com
cpaffiliates.net
custom-click.com
cxtlive.com
dbbsrv.com
dgm2.com
did-it.com
dope.dk
ekmas.com
eshopoffer.aspx
espotting.com
etology.com
eyewonder.com
factortg.com
filetarget.com
filitrac.com
findology.com
floppybank.com
forrestersurveys.com
ftjcfx.com
geocities.com/js_source/
gestionpub.com
getban.php
getfound.com
gms1.net
hb.lycos.com
idregie.com
ifactz.com
impact.as
imrworldwide.com
indiads.com
industrybrains.com
inetinteractive.com
insightfirst.com
java.yahoo.com/a
kanoodle.com
kelkoo.fr
keymedia.hu
****era.com
lapi.ebay.
lduhtrp.net
leadhound.com
localxml.com
log.go.com
lycos.com/catman/
maxserving.com
mercuras.com
metaffiliation.com
midaddle.com
mms3.com
myreferer.com
mytemplatestorage.com
myway.com/getSponsLinks
netavenir.com
netshelter.net
northmay.com
nvidium.com
nytimes.com/marketing
oclus.com
omguk.com
pro-market.net
promotionad
publicidad.js
questionmarket.com
rad.msn.com
realmedia.com
redcolobus.com
redsheriff.com
regnow.com
ru4.com
serving-sys.com
shareasale.com
showyoursite.com
si-net.se
smarttargetting.co
spotsystems.info
sublimemedia.net
subscriptionrocket.com
suitesmart.com
targetpoint.com
tipsurf.com
toplaboom.com
tqlkg.com
tradedoubler.com
urltrak.com
utarget.co.uk
webex.ru
yceml.net
zedo.com

Works for me.
 
You might want to think about optimize your line.match parameters, some of the words you search for are redundant.

No wonder your file is 45000 lines long if this is what you are doing.

eg. It is pointless searching for advertising or advertserve if you already match on the subset advert.
 
pookfuzz said:
You might want to think about optimize your line.match parameters, some of the words you search for are redundant.

No wonder your file is 45000 lines long if this is what you are doing.

eg. It is pointless searching for advertising or advertserve if you already match on the subset advert.
The filter does not work with partial URI matches, only complete words which appear between dots. You need to have both advert and advertising as filter keywords, for instance.
This does not result in additional hosts file entries at all.
The beauty of the damn thing is that it works on system level, which means it is not browser-specific: it works with IE, Firefox, Opera and anything else you can think of.
Easy to set up too. No regex required: just plain ole text keywords.
It is what home computer users need and it works like a bomb, especially when you pair it with a bloatless hosts file which clobbers thousands of malware sites.
 
Top
Sign up to the MyBroadband newsletter
X