Skip to content

7underlines/apache-log-webp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apache Log WebP Compatibility Checker

Description

Analyze your Apache 2 access log to identify browsers that lack full WebP support.

Installation

# Clone the repository
git clone https://github.com/7underlines/apache-log-webp.git

# Navigate to the project directory
cd apache-log-webp

# Install dependencies
pip install -r requirements.txt

Usage

# Start the script
python log_analyzer.py

Example output:

Browsers without full WebP support:
Firefox 55.0 - 1161
Safari 13.1.2 - 28
Safari 11.1.2 - 23
IE 11.0 - 12
Firefox 15.0 - 8
Firefox 53.0 - 6
Chrome 24.0.1309 - 1
Chrome 26.0.1410 - 1
IE 5.1 - 1
Firefox 28.0 - 1
Firefox 64.0 - 1
Safari 10.1.2 - 1
Firefox 7.0.1 - 1
Safari 7.0.3 - 1

User agents are grouped by browser name and version, with the number of occurrences shown next to each entry.

Note that requests from older browsers are often not from legitimate users but from bots. For instance, the 1161 requests with Firefox 55.0 in this example were all from a bot, making them irrelevant to WebP support considerations. To determine if real users are involved, inspect your access.log file.

License

AGPL-3.0

About

Parse your Apache 2 access log to detect if you have users with browsers that don't fully support WebP.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages