[Android Software/Hacking General [Developers Only]] HeathenMan:
Inspired by BSDgeek_jane's mother of adblock, ive combined more than 19 hostname lists into one.

Its name should speak itself- this will keep most dangerous sites out of your range, and ads should be gone too.

The focus stays on security/privacy. maybe the huge file could slow down your android device, the moab is a mid-way cause its trimmed down already to take care of this point.

you can find tips to improve your device in second post.

!!

-- Important --

Firefox seems to ignore hosts file, import settings to Pale Moon (modified Firefox)

this is big security bug, known by devs since about 8 years and still no change

!!

it blocks:

(version legend= ad , security , both)

- ads [minimal]

- tracking

- PUB (Potentially Unwanted Program)

- malware/spyware [minimal]

- exploits

- fraud

- hijacking

- phishing

- typosquating

- botnets

- dns censorship* circum version currently discontinued

- bad ssl

- worms

- trojans / virus [minimal]

- ddos

works on:

- Windows* still testing

- Linux

- Android

install:

just extract the file and copy it to your hosts file direction.

if theres no file to overwrite, its the wrong location.

linux= /etc/

check all lines on linux before, just paste my file after them to prevent system problems

(for example user hostname changes)

android= /system/etc/ [the mobile version grants automatic flash with recovery]

windows= /system32/drivers/etc/

same as on linux. pasting behind always keeps it safer.

its now available over ZeroNet (decentral, you can also host it after zeronet install- just visit to keep this alive)

Intern Adress:

/1KUR242vYb5BDAiLkfa321fXfsDr5vBj3i

public zeronet proxies if you want to try this first=

http://zero.pags.to:43110/

http://zeronet.classcoder.com

http://bit.no.com:43110

add an intern adress behind them and its shown outside of the network.

remember that it cant block everything, find missing hostnames on android with blockit!.

heres a list of sources, please let me know if you reach more.

paid ones:

iblocklist.com (hosts from bluestack)

malwarepatrol.net (cryptolocker and normal)

free:

mother of adblock from december 14 (before performance cut) / moab (aug15) [thread on xda]

adaway.org

hosts-file.net (6 categories= ad,emd,exp,fsa,hjk,psh)

malwaredomainlist.com

pgl.yoyo.org

someonewhocares.org

sysctl.org

winhelp2002.mvps.org

malekal.com

community.websense.com

rlwpx.free.fr (3 categories= trc, pub, rsk)

own in/out ad connections [will upload later]

hosts.eladkarako.com

adzhost on optimate.dl.sourceforge.net

malc0de.com

adblock.gjtech.net

logroid on sites.google.com

abuse.ch (4 categories= zeus, sslbl, feodo, palevo)

jansal.googlecode.com

virustracker.net

spam404.com

urlblacklist.com (4 categories= malware, phishing, ad, spyware, virusinfected)

dshield.org

adnitro from nitrox tweak

basic's adblock8 (cydia)

the following are shipped with the own in/out ad connections file

nictasoft.com

maliciousdomainsblocker.tk [recently down]

projecthoneypot.org

phishtank.com

http://www.malwareurl.com

cinsscore.com

Université Toulouse Blacklist (sections: malware,phishing,publicite,ddos)

shallalist.de (sections: adv,spyware,tracker)

Minimal Hosts on Reddit

source link for apps like adaway

https://pags.to/bphf/sec.txt | https://pags.to/bphf/ad.txt

Torrent Links (currently just nonmobile):

http://monova.org/torrent/42022696/bphf-bad-punching-host-file-131215.html - http://www.seedpeer.eu/details/11618639/bphf-nonmobile-131215-zip.html

Decentral ZeroNet Link:

(remember this is only reachable over one of the public proxies written above or if zeronet is activated [theres no android app for this yet])

/1KUR242vYb5BDAiLkfa321fXfsDr5vBj3i/sec.txt | /1KUR242vYb5BDAiLkfa321fXfsDr5vBj3i/ad.txt

download :

[decentral zeronet links , same 'rules' as with the above source links]

you can load three versions of BPHF now - ad and sec (security) are for mobile , both contain a minimal amount of the other (i recommend sec) and nonmobile - explains it allready, right?

old versions (multi-upload,choose favorite server) & changelog at second post

nonmobile-131215

/1KUR242vYb5BDAiLkfa321fXfsDr5vBj3i/bphf-nonmobile-131215.zip

[extracted= 68,7 mb | 12,8 mb]

sec-131215

/1KUR242vYb5BDAiLkfa321fXfsDr5vBj3i/bphf-sec-131215.zip

[extracted= 24,6 mb | 5,4 mb]

ad-131215

/1KUR242vYb5BDAiLkfa321fXfsDr5vBj3i/bphf-ad-131215.zip

[extracted= 20,6 mb | 4,6 mb]

270417

http://www.wikiupload.com/8I970GAB63PFVPY

[extracted= 24 mb | 4,5 mb]

BPHF Support at other Communitys:

English=

EE Community

Cnet.com

German=

android-hilfe.de

androidpit.de

handy-faq.de

usp-forum.de

mobilefaq.de

android-developers.de

Thats it, enjoy :)

Tutorial (rebuild yourself and post in thread- be aware that the usage of a host file needs trust)

all sources from above are linked exactly now and can be used for this.

please first check if your downloaded files are newer as the latest uploads. just use valid domains.

i will at colors to differ sources in ad and sec versions later.

1.

search for ' multiple reverse ip lookup ' to convert ip lists to domain names, this includes

sslbl ,feodotracker [their domainlist seems empty] and projecthoneypot

2.

replace a word in textfile=

sed 's/before/now/g' old_file > new_file

can be used for 127.0.0.1 <-> 0.0.0.0 (first isnt supported by all devices and second one reacts faster and needs less space)

malc0de source needs change of PRIMARY to ip,

for those without any hosts like formatation you can add before each line=

sed -e 's/^/yourtext/' old_file > new_file

[e.g. palevo on abuse.ch]

also to unify the distance between the ip and domain name in a host file, use these=

sed 's/127.0.0.1 /127.0.0.1 /g' old_file > new_file

[for moab and malwaredomainlist hosts]

sed 's/127.0.0.1\t/127.0.0.1 /g' old_file > new_file

[hosts-file.net , zeustracker and adzhost]

sed 's/127.0.0.1\t /127.0.0.1 /g' old_file > new_file

[for sysctl]

3.

merge host files into one

cat file1> tmphost

cat file2>> tmphost

and remove dubplicates

cat tmphost|sort|uniq >done1

all cmd commands works in mass - u can create a txt file with all actions together, copy&paste will let cmd work trough.

thats how i manage it. every version i update the source files ,edit each name with an date addition and just change the same at this txt file.

4.

delete all comments from the final file (they start with #)

add the header and search duplicates of it manual:

127.0.0.1 localhost

127.0.0.1 localhost.localdomain

255.255.255.255 broadcasthost

127.0.0.1 android #just on mobile version

127.0.0.1 android.localhost #just on mobile version

127.0.0.1 test

127.0.0.1 test.localhost

127.0.0.1 local

127.0.1.1 q4os-desktop #just on nonmobile version

# The following lines are desirable for IPv6 capable hosts

::1 localhost ip6-localhost ip6-loopback

fe00::0 ip6-localnet

ff00::0 ip6-mcastprefix

ff02::1 ip6-allnodes

ff02::2 ip6-allrouters

ff02::3 ip6-allhosts

fe80::1%lo0 localhost

​