A simple HTTP server to return a static 1x1 pixel image. Similar to a pixelserv. Written in less than 100 lines pure C code. Compiles with the toolchain of the Asuswrt-Merlin firmware. No Optware or Entware required.
nweb23.c
Fast HTTP pixel image server for ad blocking
nweb23.c
Code:
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <fcntl.h> #include <signal.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #define VERSION 23...