initial commit

This commit is contained in:
kento2 2026-09-08 18:36:12 +02:00
commit 584aad56b8
19 changed files with 390 additions and 0 deletions

24
README Normal file
View file

@ -0,0 +1,24 @@
nobotgate
=========
When you run a private site (that still uses a
super-serve), 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!