> On 3 Dec 2022, at 21:40, Mike Wright <nob...@nospam.hostisimo.com> wrote:
> 
> Hi all,
> 
> I'm using dnsmasq to create an ad/media blocker.  Whenever it receives a 
> request for any listed domain I want to return a specific IP that points to a 
> dummy webserver.  That part works.
> 
> 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.
> 
> nc seems like a good candidate but I can't get it right.
> 
> Anybody have a nc one-liner or other alternative that would accomplish this?

I Use apache httpd, its very low over head to serve static content.
From memory I recall it used approx. 100k bytes of memory.

Barry
> 
> Thanks for any ideas,
> Mike Wright
> _______________________________________________
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
> 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@lists.fedoraproject.org
> Do not reply to spam, report it: 
> https://pagure.io/fedora-infrastructure/new_issue
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to