24 lines
827 B
Groff
24 lines
827 B
Groff
.TH nobotgate 3
|
|
.SH NAME
|
|
nobotgate \- block bots using http header authentication
|
|
.SH SYNOPSIS
|
|
nobotgate TOKENFILE VALID INVALID
|
|
.SH DESCRIPTION
|
|
nobotgate-access is meant to run under a superserver such
|
|
as tcpserver(1) or inetd(8).
|
|
It reads http request headers from stdin and tries find a
|
|
HTTP Bearer token. If no token is found or the token is not
|
|
listed in TOKENFILE, it exec's into INVALID.
|
|
If a token is found and the token is listed in
|
|
TOKENFILE, it exec's into VALID.
|
|
.SH "TOKENFILE FORMAT"
|
|
The tokenfile is parsed line by line. Empty lines are
|
|
ignored.
|
|
The token begins at line start and ends at the first space
|
|
in the line(the space is not part of the token of course).
|
|
.SH "EXAMPLE"
|
|
An example tokenfile:
|
|
1234 this is bob's token
|
|
abc223-23cm ci/cd token
|
|
.SH "SEE ALSO"
|
|
nobotgate-access(1), tcpserver(1), inetd(8)
|