Post your Hosts file

I need to add more URLs to my hosts file. Here's mine:


127.0.0.1 google.com
127.0.0.1 facebook.com
127.0.0.1 yahoo.com
127.0.0.1 microsoft.com
127.0.0.1 apple.com
127.0.0.1 adobe.com
127.0.0.1 google-analytics.com
127.0.0.1 googletagservices.com
127.0.0.1 amazon-adservices.com
127.0.0.1 aaxads.com
127.0.0.1 buysellads.net
127.0.0.1 scorecardresearch.com
127.0.0.1 da-ads.com
127.0.0.1 revcontent.com
127.0.0.1 quantserve.com
127.0.0.1 adscore.com
127.0.0.1 bankofamerica.com
127.0.0.1 translate.google.com
127.0.0.1 chrome.google.com
127.0.0.1 mybrowseraddon.com
127.0.0.1 addons.mozilla.org
127.0.0.1 accounts.google.com
127.0.0.1 plus.google.com
127.0.0.1 addons.opera.com
127.0.0.1 mozilla.org
127.0.0.1 login.yahoo.com
127.0.0.1 mail.google.com
127.0.0.1 login.live.com
127.0.0.1 icloud.com
127.0.0.1 store.apple.com
127.0.0.1 paypal.com
127.0.0.1 chase.com
127.0.0.1 instagram.com
127.0.0.1 twitter.com
127.0.0.1 amazon.com
127.0.0.1 ebay.com
127.0.0.1 live.com
127.0.0.1 hotmail.com

Attached: 1531766378844m.jpg (1024x702, 189K)

Other urls found in this thread:

angelfire.com/comics2/fatboy9175/MShosts.txt
winhelp2002.mvps.org/hosts.htm
someonewhocares.org/hosts/
github.com/StevenBlack/hosts
security.stackexchange.com/questions/174350/is-it-unsafe-to-use-etc-hosts-file-as-a-website-blocker-in-the-following-manner
pastebin.com/raw/ybg1LQi1
energized.pro/blu
energized.pro/ultimate
github.com/blechschmidt/massdns
github.com/ilikenwf/pg2ipset
wiki.archlinux.org/index.php/Ipset
raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/hosts.txt
raw.githubusercontent.com/StevenBlack/hosts/master/hosts
raw.githubusercontent.com/notracking/hosts-blocklists/master/hostnames.txt
pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=1&mimetype=plaintext&_=212074
twitter.com/AnonBabble

???? ?

Attached: 1528884286560.png (374x376, 221K)

Microsoft blocklist - angelfire.com/comics2/fatboy9175/MShosts.txt

MVPS Hosts file - winhelp2002.mvps.org/hosts.htm

>blocking google
how the hell did you post?

I paid $20

someonewhocares.org/hosts/

too long to post here
github.com/StevenBlack/hosts
I have all of these.

Are these better than using adblockers and other browser extensions?

Why doesn't someone photoshop into JC Denton?

networking works in 2 ways: Push & pull
in order to block an ad, you have to pull the medium from the server then block it.
By blacklisting them in DNS, you never 'pull' the medium, thus not only save bandwidth but the ad does not display, ever.
This works better in every scenario. That's why pi-hole is so big. You won't need a browser addon at all, if you choose to not use one you'll see an error, maybe 404 error or image did not load error, where the ad should have been.
If you want to not see the error, you'll still need an addon. But again, you never used your internet bandwidth to get the ad, so there's that.

Will having a hosts file with 100k entries slow down by browsing, since each DNS query runs against a list wist 100k entries?

Only if you're browsing through a toaster

not only that, but each time you direct to 127.0.0.1, you're using additional processing time due to receiving and discarding your own requests

Do you know what a hash map is? It's constant time.

NetBSD BTFO

No, it'll speed it up
you shouldn't use 127.0.0.1 as only idiots do. you should use 0.0.0.0 which drops the packet
if you're looking up hosts it goes to an external DNS and processes it much harder than 127.0.0.1... but 0.0.0.0 just drops the packet.

>not using all 0
embarrassing

I changed it after making this thread.

get back with your loopbacks

wc -l /etc/hosts
61905 /etc/hosts

not gonna happen

security.stackexchange.com/questions/174350/is-it-unsafe-to-use-etc-hosts-file-as-a-website-blocker-in-the-following-manner

nuff said

pastebin.com/raw/ybg1LQi1

good stuff
i guess you can trivially convert hosts lists into iptables rules with some regex

Thanks. I'll try using iptables instead.

Just use ublock-o ffs.

Mines always senoai

You're a fucking liar, but great bait.

thoughts on using dnsmask as a blocker.

The only problem with that is iptables has to resolve the domain before adding it to the rules so it will take a little while for longer lists and you'll likely need to update it regularly (cronie should do the trick)

Here's a better script for that
#!/bin/bash
while read -r host; do
if iptables -I INPUT -s "$host" -j DROP 2>/dev/null && iptables -I OUTPUT -d "$host" -j REJECT 2>/dev/null; then
echo "Blocking $host"
else
echo "Unable to resolve $host"
fi
done <

Hosts file blocks hosts, not domains. Use dnsmasq instead.

PS. can't post example
Error: Our system thinks your post is spam. Please reformat and try again.


I suggest adding 4hcannel as well.

>ctrl+f
>no energized protection
energized.pro/blu
energized.pro/ultimate
Retarded answer, just redirect to 0.0.0.0 instead and all your problems are gone. hosts files are easier to maintain than iptables rules.

>???? ?

Found the NPC

'easy' is 'wrong and gay'

github.com/blechschmidt/massdns

This resolved the blu list in less than a minute. After that just grep all ip's, sort -u, and add to iptables. Much better option than relying on a hosts file, as you really shouldn't be using a hosts file as a firewall when a perfectly good one exists.

>I have no idea what I'm talking about
Why go through the trouble of resolving a malware domain (ads are malware and should be treated as such) and only denying a connection to the IP afterwards if you could have an instant(!) DNS query pointing to a bogus address, ending the connection process much sooner? What if the address record changes? A firewall is not suited for adblocking. A hosts file is not a firewall.

>in order to block an ad, you have to pull the medium from the server then block it.
Wrong, not how adblock works.

use 0x0.st

No point. Most ad "hosts" are in a unique domain. You can use dnsmasq for addn_hosts though so you can use a dedicated adblocking hosts file along a normal one.

See It's by no means instant. The sorted and resolved blu list is only 60k lines from the initial 200k. Do that with some ipset rules and it'll be even quicker when adding to iptables. It's faster, and more secure.

>What if the address record changes?
>What are cron jobs

>A firewall is not suited for adblocking
Correct, it's suited for blocking known malicious IP addresses though.

Attached: Screenshot_2018-12-17-15-42-04~2.png (1440x959, 125K)

Learn what a whitelist is, dummies.

>0.0.0.0 domain1 domain2 domain3 domain4

Actually what's even easier is this: github.com/ilikenwf/pg2ipset

Found it from here: wiki.archlinux.org/index.php/Ipset

raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/hosts.txt
raw.githubusercontent.com/StevenBlack/hosts/master/hosts
raw.githubusercontent.com/notracking/hosts-blocklists/master/hostnames.txt
pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=1&mimetype=plaintext&_=212074
remember to use 0.0.0.0 and remove duplicates (awk '!a[$0]++')
btw i'm too brainlet for dnsmasq

>127.0.0.1 instead of 0.0.0.0
Why the fuck

>microsoft.com
I hope you realize that Microsoft has over a million domains so blocking this one doesn't do shit.

>Buying a Jow Forums pass
>implying gookmoot won't just sell your data to Google anyways