We have an CGI based "hit counter" application available
on all our servers that allows you to easily display a counter on
your pages without the need to do any programming. The "Counter"
application is a public domain application which has been installed
without modification on all our servers for the convenience of our
customers. Below are a few examples of what you can do with it.
Counter (version 2.5)
2.5, a page counter program that will display the number of
"hits" to a web page. In order to make this easy to use
for everybody, we have configured the counter so that you can create
your own data file and at the same time initialize the counter when
you first use it.
What this means is that you must name your data file using the convention:
where <yourlogin> is the login you use to login to your
To use Counter
2.5, just add any of the following lines (from the examples
below) to any of your pages, changing "sample.dat" to
"<yourlogin>.dat". The next time your page is accessed,
the data file will be created in a protected area. Each subsequent
access will increment the counter.
You can add a counter to as many of your pages as you would like.
The only difference in adding a counter to additional pages is the
name of the data file. Each data file must have a unique name. What
we recommend is that you name any additional data files using the
where <yourlogin_pagename> is the login you use to login
to NetGate and the name of the page displaying the counter.
Here's an example of a simple page counter:
If you want your counter to start with a number other than 0,
( for example 9999 ) you can set the starting number using the following
To display the current time you can use:
<img src="http:/cgi-bin/Count.cgi?display=clock align=absmiddle>
To display the current date you can use:
<img src="http:/cgi-bin/Count.cgi?display=date align=absmiddle>
To display the counter in Style B use:
To display the counter in Style C use:
You can also place a hidden counter in your page, you can view
the count just by viewing the data file you specify for that page.
Use the following code to display a hidden counter:
For more examples, additional information, and options on the
the authors site.