Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kjdev/apache-mod-woothee
mod_woothee is Add HTTP request headers by Woothee.
https://github.com/kjdev/apache-mod-woothee
Last synced: 25 days ago
JSON representation
mod_woothee is Add HTTP request headers by Woothee.
- Host: GitHub
- URL: https://github.com/kjdev/apache-mod-woothee
- Owner: kjdev
- License: apache-2.0
- Created: 2016-01-06T05:49:16.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-15T23:33:08.000Z (almost 9 years ago)
- Last Synced: 2024-11-18T00:52:40.004Z (about 2 months ago)
- Language: C
- Size: 24.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mod_woothee
mod_woothee is Add HTTP request headers by Woothee.
The module for Apache HTTPD Server of Project Woothee,
which is multi-language user-agent strings parsers.https://github.com/woothee/woothee
## Build
```
% git clone --depth=1 https://github.com/kjdev/apache-mod-woothee.git
% cd apache-mod-woothee
% ./autogen.sh # OR autoreconf -i
% ./configure [OPTION]
% make
% make install
```### Build options
apache path.
* --with-apxs=PATH
* --with-apr=PATH## Configration
httpd.conf:
```
LoadModule woothee_module modules/mod_woothee.soWootheeEnable On
RequestHeaderForWootheeEnable On
RequestHeaderForWoothee add X-Woothee-For-Name name
RequestHeaderForWoothee add X-Woothee-For-Os os
RequestHeaderForWoothee add X-Woothee-For-Category category
RequestHeaderForWoothee add X-Woothee-For-Os-Version os_version
RequestHeaderForWoothee add X-Woothee-For-Version version
RequestHeaderForWoothee add X-Woothee-For-Vendor vendor
```### RequestHeaderForWoothee Directive
* Description: Configure HTTP request headers
* Syntax: RequestHeaderForWoothee add|append|merge|set|setifempty header name|os|category|os_version|version|vendor [early|env=[!]varname|expr=expression]]
* Context: server config, virtual host, directory, .htaccess## WootheeEnable
```
WootheeEnable On
LogFormat "%{WOOTHEE_NAME}n,%{WOOTHEE_OS}n,%{WOOTHEE_CATEGORY}n,%{WOOTHEE_OS_VERSION}n,%{WOOTHEE_VERSION}n,%{WOOTHEE_VENDOR}n" woothee_log
CustomLog "logs/woothee_log" woothee_log```
`logs/woothee_log`:
```
Firefox,Windows 10,pc,NT 10.0,44.0,Mozilla
```## RequestHeaderForWootheeEnable
```
RequestHeaderForWootheeEnable On
RequestHeaderForWoothee add X-Woothee-For-Name name
RequestHeaderForWoothee add X-Woothee-For-Os os
RequestHeaderForWoothee add X-Woothee-For-Category category
RequestHeaderForWoothee add X-Woothee-For-Os-Version os_version
RequestHeaderForWoothee add X-Woothee-For-Version version
RequestHeaderForWoothee add X-Woothee-For-Vendor vendor```
Add Requeset Header.
* X-Woothee-For-Name : `Firefox`
* X-Woothee-For-Os : `Windows 10`
* X-Woothee-For-Category : `pc`
* X-Woothee-For-Os-Version : `NT 10.0`
* X-Woothee-For-Version version : `44.0`
* X-Woothee-For-Vendor vendor : `Mozilla`