PHP Classes

PHP Apache Log Parser and Filter: Parse and filter Apache logs to discard crawlers

Recommend this page to a friend!
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 434 All time: 6,243 This week: 242Up
Version License PHP version Categories
apache-log-filter 1.0.0BSD License5.2HTML, PHP 5, Logging
Description Author

This class can parse and filter Apache access logs to discard crawlers.

It takes the contents of Apache access log file and parses it to filter lines that are not of accesses of crawlers of search engines or are accessing pages for crawlers like the robots.txt.

The class can process the remaining access log file lines to display the relevant information, including the country of the IP address of each access.

Innovation Award
PHP Programming Innovation award nominee
July 2013
Number 4


Prize: One book of choice by Packt
Web servers can record details of the accesses of site users in log files.

However, accesses performed by search engine crawlers and other types of robot programs may not be useful to be accounted because they are not real users.

This class can process Apache access logs in a way that it discard accesses of several types of robot programs.

Manuel Lemos
Picture of Janne
  Performance   Level  
Name: Janne <contact>
Classes: 1 package by
Country: Finland Finland
Age: 41
All time rank: 34017 in Finland Finland
Week rank: 946 Up3 in Finland Finland Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Files folder imageclasses (3 files)
Accessible without login Plain text file ALogFilter.css Aux. Css-file just for prettifying the js-functional buttons.
Accessible without login Plain text file ALogFilter.js Aux. Provides functionality for adding pre-defined filters
Accessible without login Plain text file index.php Example This is a example PHP/HTML-page for using the classes

  Files folder image Files  /  classes  
File Role Description
  Plain text file ApacheAccessLogFilter.php Class access log filter
  Accessible without login Plain text file debugger.php Aux. debugger class for ApacheAccessLogFilter
  Plain text file ip2Nation.php Class resolves the country from IP

 Version Control Unique User Downloads Download Rankings  
 0%
Total:434
This week:0
All time:6,243
This week:242Up
User Comments (1)
Thats a very good and useful class ;-)
8 years ago (Josť Filipe Lopes Santos)
70%StarStarStarStar
 
For more information send a message to info at phpclasses dot org.