Pixelserv 1.1

Pixelserv is a super minimal webserver, it's one and only purpose is serving a 1x1 pixel transparent gif file. Using some creative firewalling (netfilter/iptables) rules you can redirect some webrequests (for adds for example) to pixelserv.

Authors

Piet Wintjens originally wrote pixelserv, I've (Mark Janssen) made some slight modifications and enhancements to it. It's really trivial, but very handy. :) The main webpage for pixelserv is on SF.net

License

Pixelserv is covered by the new BSD (no advertising clause) license

Usage

Running pixelserv is very easy. There are currently two versions of pixelserv. One runs as a daemon, the other version runs from inetd. Decide which version suits you better (daemon if its accessed often, inetd if less often or you want easier configurability.)

Daemon version (1.0)

To run the daemon version of pixelserv, change the 'Port' value to match the tcp-port you want pixelserv to listen on. Then just start it in the background, or have it started from /etc/inittab

Inetd version (1.1)

The inetd version doesn't have any configuration in pixelserv itself. You can run it on one or more ports easily. Add the following entry (using any portnumber you want) to your '/etc/services' file:

pixelserv      65000/tcp                       # Pixelserv, add blocker
Then add the pixelserv entry to your '/etc/inetd.conf'
pixelserv stream tcp nowait nobody /path/to/pixelserv.pl pixelserv.pl

Download

Links