Menu

Home

Lucio Marinelli

"Cookieless Web Counter" is a very simple web site visit counter which allows a very fast and easy monitoring of the number of visitors to many web sites at once without setting cookies and therefore protecting users privacy. The code is written in PHP and MySQL and the user interface is made of plain HTML without Javascript.

Main Features

  • No cookies are set
  • Monitor many web sites at once from a single page
  • Shows only the number of visitors and unique visits of today and yesterday
  • For each site show last 20/50/100 visits
  • Geolocate visitors thanks to geoPlugin https://www.geoplugin.com/ (MAX 120 lookups/minute!)
  • Each visit includes timestamp, page name, remote IP address, city, country, referer label and user agent
  • Multi language (translators needed!!)
  • Visits from bots/spiders are shown in gray in the dump page

New in the last version 20200812
- added alternate CURL function to fetch geoPlugin (formerly Geolite2) locations if allow_url_fopen=0 in php.ini
- added controls to prevent permanent geoPlugin ban because of excessive requests
- number of visits to dump reduced to 20-50-100 to limit the risk of a temporary ban

Installation instructions

1) create a table in the MySQL database importing the table_structure.sql file
2) for each monitored site add configuration parameters (db name, user, password) to config.inc.php and to a copy of tracker.inc.php
3) add the configured tracker.inc.php at the end of each page of the monitored site
4) upload the config.inc.php and cwc.php on one of the monitored web sites and load cwc.php

Future directions

  • Improve graphic interface

  • Add more functionalities

  • Translate into other languages

  • Adding support for databases other than MySQL (MariaDB...)

  • ... suggest other implementations!

Project Members: