Home Web Hosting Applications Engineering Support About Us Contact Info

Count 2.5 Hit Counter

Count 2.5 is a CGI program to keep record of the raw hits of a Web page. It generates a GIF image of the number of hits and returns to the browser as an in-line image. The program also has a run-time option not to show the digit images, this way the hits can be kept without displaying it. The hits can be be monitored without incrementing from a separate page as well. Almost all of the features are run-time options.

Installation

  1. Connect to your Virtual Private Server via Telnet or SSH run the following command:

    % vinstall count
  2. Configure the Count CGI by editing the ~/usr/local/etc/Counter/conf/count.cfg file. Add your Virtual Private Server IP address and domain name to the list of authorized IP addresses and domain names at the bottom of the file. Also, add any and all other domain names such as Virtual Subhosts) hosted on your Virtual Private Server that will be using the Count CGI to the authorized list. Feel free to remove the other bogus IP addresses and domain names.

    The pertinent part of the count.cfg file is shown below.

    ;
    ; All possible names and IP addresses by which your host can be referred.
    ; These hosts can access the counter remotely or locally. Host running
    ; the http server must exist here. Wild card can be used. one item per line.
    ;
    [authorized]
      abcd.foo.com
      abcd
      131.249.1.100
      www.foo.com
      www
      YOUR.IP.ADD.RESS
      YOUR-DOMAIN.NAME
  3. Add the counter to your Web page by adding code similar to the following to your HTML:

    <img src="/cgi-bin/Count.cgi?dd=B|frgb=69;139;116&df=home.dat" align="absmiddle">

    Another option you can use the Count CGI for is to display a clock. You can do that by adding the following HTML to your Web page:

    <img src="/cgi-bin/Count.cgi?frgb=69;139;116&display=clock" align="absmiddle">

Documentation

For additional options and information about Count 2.5, see the README file in the following directory on your Virtual Private Server:

~/usr/local/etc/httpd/htdocs/wwwcount2.5

Or through your web browser at:

http://YOUR-DOMAIN.NAME/wwwcount2.5/

This documentation is also available at the Count CGI Web site: