Access Pattern Counter 1.0

Access Pattern Counter is meant to keep track of the count of users access to the pages of a site. The counter class can also output the current access count in an HTML table.

Page accesses are considered by the remote user computer IP address only if sufficient time has passed, by default one hour. During this access window, a count is kept of the accesses to the page by a specific ip address.

Access Pattern Counter allows possible detection of denial of service attacks by keeping data useful for tracking access patterns by specific hosts. All data is kept in a MySQL database. This class is officially compatible with PHP 5.