Quantcast
Channel: SNBForums
Viewing all articles
Browse latest Browse all 95351

Fast HTTP pixel image server for ad blocking

$
0
0
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
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...
Fast HTTP pixel image server for ad blocking

Viewing all articles
Browse latest Browse all 95351

Trending Articles