Warning: you need to install GD library to be able to compile gifcounter module

Download mod_gifcounter.c.gz (11 kB) version 0.3

Gifcounter module is compatible with CGI-BIN "nph-count" syntax.

Add the following lines to your Apache "access.conf" files:

# module gifcounter
<Location /cgi-bin/nph-count>
SetHandler counter
<Limit GET POST>
allow from all
and the following lines to your Apache "httpd.conf" files:
CounterFile /tmp/counter.txt
CounterFreeUsage Off
CounterIncrease Off

If you are lucky you can test the counter with this URL syntaxe:


Compile module with:
apxs -i -a -c mod_gifcounter.c -L/usr/local/lib -lgd13 -lm

You MUST use GD 1.3

Succesfully tested:

Qnx4                + Apache 1.2.6
OSF1                + Apache 1.3.26
Linux (RedHat)      + Apache 1.3.26
FreeBSD 2.2.8, 3.1, 4.7            + Apache 1.3.26
Solaris 2.5, 2.6, 2.7 and 2.8      + Apache 1.3.26

                                             Jean-Claude MICHOT
                                         jcmichot _AT_ usenet-fr.net
                                           Nov 1998, Paris France