BeGoneAds – A Python script that blocks ads by installing common hosts files
1–10 of 97 posts
Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#2Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#3Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#4Anybody have a sense of the performance overhead of using hosts files versus a detached hardware solution like a pihole?
Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#5Anybody have a sense of the performance overhead of using hosts files versus a detached hardware solution like a pihole?
Hosts files will only affect the host (workstation/desktop/laptop etc) they're installed on.
Things like piHole try to make it easy to apply the solution to all members of your network - which even in household cases these days can number in dozens, making it impractical to manage hosts files for all of them (This includes items like phones which are typically unfeasible to mess with hosts file).
Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#6Python scripts to modify system files make me a little skittish, even with source code available. I think I would just as soon grab the hosts file from https://www.someonewhocares.org/ and drop it in myself.
Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#7If the goal of the project is actual adoption, a native executable without external dependencies would have been a much better option.
Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#8The list of hosts to exclude comes from several sites here: https://github.com/anned20/begoneads/blob/2c90fcee221edf71f8...
The actual application of the hosts file is here: https://github.com/anned20/begoneads/blob/2c90fcee221edf71f8...
I missed something though. Is a simple domain name per line enough to send that content to /dev/null? I haven’t used that form in /etc/hosts.
My primary concern was that this technique could be used to send ad traffic to a site that returns 404 but gathers metrics on the web regardless.
Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#9Python scripts to modify system files make me a little skittish, even with source code available. I think I would just as soon grab the hosts file from https://www.someonewhocares.org/ and drop it in myself.
I also don't understand systemd integration in the todo.
Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#10I get that this is just someone's side project, I'm glad it exists and they're free to write it in their favorite language/environment and all; but the effort to actually run this is equivalent to actually copying the hosts files manually, and I already have all the dependencies installed. I could never get my non-techy parents to run this properly. If the goal of the project is actual adoption, a native executable w…