On 12/4/22 03:33, Tim via users wrote:
On Sat, 2022-12-03 at 13:40 -0800, Mike Wright wrote:
It's the dummy webserver that has me stumped. I'd like it to return 0
bytes, status 200 for every connection to port 80.
You mightn't need to have a webserver pretend to answer their queries,
my approach of using a domain doesn't exist DNS response works well for
me. Web browsers instantly failed to do anything related to the
advert, and carried on doing everything else that they could.
If you do want a webserver to respond in some way, it doesn't necessary
have to be a 200 response. You could have a 0 byte 404 response, that
should work just as effectively, and be easy to implement it.
I tried that long ago, just having the webserver respond to any access
directed to it, and they'd always get a 404 as they'd never be
requesting anything it had.
But for me it didn't prove to be any advantage over the domain
blocking, other than the logs satisfying my curiosity about what had
been going on (or failing to go on, so to speak).
Thanks Tim,
I'd tried that approach before but it left me with 404 errors splattered
across web pages. Probably as annoying as the ads they replaced.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue