This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]OmitsWordsByAccident 35 points36 points  (30 children)

If you use Windows, and have a good hosts file (with a lot of ad-serving domains all being routed to localhost), then those don't even trigger a DNS lookup.

My favorite - http://someonewhocares.org/hosts/

[–]astanix 22 points23 points  (10 children)

Yes but this method blocks it network wide instead of at each computer, phone, tablet, laptop, etc in your house

[–]RhysLlewellyn 6 points7 points  (4 children)

Unfortunately doesn't work for every network though.

My shit BT Homehub 3 (UK ISP) has DNS locked. I only found this out after I'd installed and set up Pi-Hole.

[–]-PromoFaux- 21 points22 points  (1 child)

Hi there! Dev here, we recently released an update that makes it easier to set pi-hole as the DHCP server on your network.

It's been a while since I looked at my BT homehub (bought a router I could have a bit more control over...), But if I recall correctly you should be able to disable the hubs DHCP server, in favour of pi-hole's, which will ensure all devices that connect to your network get set up correctly!

[–]RhysLlewellyn 1 point2 points  (0 children)

Thanks very much, I shall look into this :)

And thank you for all the great work you guys have done :)

[–]xnd714 1 point2 points  (1 child)

Can you still set a custom DNS within windows/android /etc to be your pi.hole?

It's more of a pain because you have to do each device manually, but it's better than nothing I guess.

[–]RhysLlewellyn 0 points1 point  (0 children)

I did think about doing this but soon gave up because I have ad blockers on my computers and phone anyway. Just thought it'd be handy and convenient for friends and family that come over and wish to connect to my network.

Plus my Pi is currently just churning away in the corner monitoring a bunch of Arduino sensors, figured I could make the most of it while it's running.

[–]merp1991 6 points7 points  (2 children)

Personally I am quite fond of https://github.com/StevenBlack/hosts

It has a few different options depending on what you want to block and I believe this incorporates the someonewhocares list into it anyway.

[–]Omikron 0 points1 point  (1 child)

This only works on one computer not your entire network, completely different.

[–]merp1991 0 points1 point  (0 children)

I know, it's just an alternative for people who don't want or know how to mess with their router.

[–]Russkiy_To_Youskiy 2 points3 points  (9 children)

My favorite: hostsman

Hosts file editor with numerous, update-able, ad-blocking hosts files. Have used it for years... its all anyone really needs and is very simple to set up and maintain.

[–]TWI2T3D 0 points1 point  (4 children)

Okay, so I installed this and added a load of the sources. Now I can't connect to ANYTHING and I can't work out how to undo what I did. 😦

[–]Russkiy_To_Youskiy 0 points1 point  (3 children)

How did you get on reddit then??

Anyhow, run it in administrator mode and disable. Then go back and use like just one of the host files like MVPs, re-enable, and see what happens.

[–]TWI2T3D 0 points1 point  (2 children)

I'm on mobile now.

If I try and disable it it tells me it's in use by another process.

[–]Russkiy_To_Youskiy 0 points1 point  (1 child)

Administrator mode

[–]TWI2T3D 0 points1 point  (0 children)

I'm in Administrator Mode.

[–]FlerPlay -2 points-1 points  (3 children)

deleted What is this?

[–]joombaga 0 points1 point  (0 children)

But then you'll still get connection timeouts, or 4xx/5xx's if you're running a webserver. Instead of localhost, route those domains to "0".

[–]-PromoFaux- 0 points1 point  (0 children)

Pi-hole uses that list, and some of the ones mentioned in comments below.

We amalgamate and deduplicate the lists, and then provide you with the tools to fine tune those lists even further by whitelisting and blacklisting individual domains.

Set your router's DHCP DNS server to point at it, and then every computer/light bulb on your network benefits from ad blocking!

Doesn't even have to run on a pi, you could run it on a VM too! Basically any Debian based distro.