21 lines
1.2 KiB
Markdown
21 lines
1.2 KiB
Markdown
# mod_webgate
|
|
mod_webgate is a basic request verification challenge intended to minimalize traffic created by various bots.
|
|
It is implemented as [Apache httpd](https://httpd.apache.org) module.
|
|
|
|
## Installation
|
|
The intended way of installing this module is via the `apxs` utility. It can automatically build shared object with module by
|
|
passing appropriate flags to the C compiler and linker, install built module and activate it.
|
|
|
|
The following command should be used to build, install and activate the module:
|
|
```console
|
|
apxs -c -i -a mod_webgate.c
|
|
```
|
|
Depending on your system configuration it may be neccessary to run `apxs` as privileged user.
|
|
|
|
## Configuration
|
|
Module defines following configuration directives which can be used from specified contexts:
|
|
| Directive | Context | Parameter 1 | Description |
|
|
|----------------------------|-----------|--------------|---------------------------------------------------------|
|
|
| `WebgateEnabled` | Directory | `on` / `off` | Whether module is enabled for current directory |
|
|
| `WebgateTrackedTokenCount` | Server | number | Amount of access tokens which module will keep track of |
|