Re: 1 line null webserver

2022-12-05 Thread Ted Roche
On Sat, Dec 3, 2022 at 4:41 PM Mike Wright wrote: > > Anybody have a nc one-liner or other alternative that would accomplish this? > Some of my best projects started out as a one-liner. ;) I'm using Pihole now. It acts as a DNS and returns 0.0.0.0 as the address . What if you set dnsmasq to do t

Re: 1 line null webserver

2022-12-04 Thread Tim via users
On Sun, 2022-12-04 at 08:50 -0800, Mike Wright wrote: > 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. Zero pixel transparent gif as the webserver's 404 page. But my other approach (domain doesn't exist

Re: 1 line null webserver

2022-12-04 Thread Mike Wright
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 appro

Re: 1 line null webserver

2022-12-04 Thread Tim via users
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 DN

Re: 1 line null webserver

2022-12-04 Thread Philip Rhoades via users
Mike, ruby -run -e httpd . -p 5000 P. On 2022-12-04 21:01, Barry wrote: On 3 Dec 2022, at 21:40, Mike Wright 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 web

Re: 1 line null webserver

2022-12-04 Thread Barry
> On 3 Dec 2022, at 21:40, Mike Wright 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

Re: 1 line null webserver

2022-12-03 Thread Joe Zeff
On 12/03/2022 03:10 PM, Mike Wright wrote: Thanks Joe. I'm all ears.  Do you have an example? No. If I did, I'd have included it. ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject

Re: 1 line null webserver

2022-12-03 Thread Tim via users
On Sat, 2022-12-03 at 13:40 -0800, Mike Wright wrote: > 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.

Re: 1 line null webserver

2022-12-03 Thread Mike Wright
On 12/3/22 14:00, Joe Zeff wrote: On 12/03/2022 02:40 PM, Mike Wright wrote: Anybody have a nc one-liner or other alternative that would accomplish this? Why not a simple one-liner shell script? Thanks Joe. I'm all ears. Do you have an example? __

Re: 1 line null webserver

2022-12-03 Thread Joe Zeff
On 12/03/2022 02:40 PM, Mike Wright wrote: Anybody have a nc one-liner or other alternative that would accomplish this? Why not a simple one-liner shell script? ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to

1 line null webserver

2022-12-03 Thread Mike Wright
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