initial commit
This commit is contained in:
commit
584aad56b8
19 changed files with 390 additions and 0 deletions
24
README
Normal file
24
README
Normal 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!
|
||||
Loading…
Add table
Add a link
Reference in a new issue