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 Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 435 All time: 6,285 This week: 206Up
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  
Innovation award
Innovation award
Nominee: 1x

 

  Files folder image Files (6)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:435
This week:0
All time:6,285
This week:206Up
User Comments (1)
Thats a very good and useful class ;-)
11 years ago (José Filipe Lopes Santos)
70%StarStarStarStar