block bots using http bearer auth
  • C 71.5%
  • Roff 14.9%
  • Meson 6.9%
  • Shell 6.7%
Find a file
2026-09-10 02:09:53 +02:00
example.service . 2026-09-10 02:04:07 +02:00
tool initial commit 2026-09-08 18:36:12 +02:00
.gitattributes initial commit 2026-09-08 18:36:12 +02:00
.gitignore initial commit 2026-09-08 18:36:12 +02:00
check_token.c . 2026-09-10 02:04:07 +02:00
example.input initial commit 2026-09-08 18:36:12 +02:00
forward_request.c a 2026-09-10 02:09:53 +02:00
meson.build . 2026-09-10 02:04:07 +02:00
meson.options initial commit 2026-09-08 18:36:12 +02:00
nobotgate-access.1 . 2026-09-10 02:04:07 +02:00
nobotgate-access.c . 2026-09-10 02:04:07 +02:00
nobotgate.1 . 2026-09-10 02:04:07 +02:00
nobotgate.c . 2026-09-10 02:04:07 +02:00
nobotgate.h . 2026-09-10 02:04:07 +02:00
parse_token.c . 2026-09-09 20:02:39 +02:00
README doc improvements 2026-09-09 04:20:24 +02:00

nobotgate
=========

When you run a private site (that still uses a
super-server), you can use nobotgate to require users to
provide an http bearer token. This way, bots won't flood
your site with spam.

usage
-----

use nobotgate(1) together with a super-server such as inetd(8),
tcpserver(1) or s6-tcpserver:
  # tcpserver 0.0.0.0 80 nobotgate /etc/wwwtokens ./on-valid ./on-invalid
where /etc/wwwtokens contains:

and ./on-valid contains:
  #!/bin/sh
  exec busybox httpd -i -h /var/www
and ./on-invalid contains:
  #!/bin/sh
  exec nobotgate-access cat usage
and usage contains:
  No bearer token specified!