Serious question. We all realize that the economics of the internet is largely fueled by ads, so why are we so keen to block them? It’s ad revenue that have allowed technology to flourish so strongly over the last two decades.
BeGoneAds – A Python script that blocks ads by installing common hosts files
41–50 of 97 posts
Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#42Serious question. We all realize that the economics of the internet is largely fueled by ads, so why are we so keen to block them? It’s ad revenue that have allowed technology to flourish so strongly over the last two decades.
I'm glad Firefox is now blocking third-party trackers by default (not that I needed it for myself, but it's important for others to have this).
Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#43Earlier quoted context omitted.
Why?
Why not? Modifying system hosts configuration requires privileged file system access. The mindset here should be default deny.
With the proper permissions something like this should be ok, but I'd tread lightly. Especially with something that dynamically updates your hosts file.
Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#44Earlier quoted context omitted.
0.0.0.0 ≠ localhost
Indeed. Traffic served from 0.0.0.0 can be seen from other machines. Traffic on 127.0.0.1 or localhost cannot. Important to know when you’re doing local development vs a local demo.
Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#45Serious question. We all realize that the economics of the internet is largely fueled by ads, so why are we so keen to block them? It’s ad revenue that have allowed technology to flourish so strongly over the last two decades.
Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#46Since accepting Host files from someone on the internet can be dangerous I dug into the code: The 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…
This is actually sent to the IP address 0.0.0.0, it roughly means that all the traffic of the listed hosts is routed back to localhost
Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#47Earlier quoted context omitted.
Isn’t that what cron is for?
Systemd has a cron system too. I’m just guessing, but it might be easier to programmatically install a systemd cron job (and making sure it runs) than doing so for the old/conventional crond?
Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#48Serious question. We all realize that the economics of the internet is largely fueled by ads, so why are we so keen to block them? It’s ad revenue that have allowed technology to flourish so strongly over the last two decades.
Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#49Serious question. We all realize that the economics of the internet is largely fueled by ads, so why are we so keen to block them? It’s ad revenue that have allowed technology to flourish so strongly over the last two decades.
Not long ago, the economy was largely fueled by slavery. Yet we got rid of that.
Re: BeGoneAds – A Python script that blocks ads by installing common hosts files
#50Since accepting Host files from someone on the internet can be dangerous I dug into the code: The 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 be honest, this code is over-engineered. It could be a single script with a handful of functions. At the same time, it’s missing functionality such as deduplicating entries from the different lists.