update README

This commit is contained in:
sceox 2020-11-18 16:17:00 -08:00
parent e741dc37ee
commit a6fdf3921e

View File

@ -6,18 +6,26 @@ stopforumspam API](https://www.stopforumspam.com/usage) and system firewall
To deploy:
1. Modify the configuration variables in the scripts as neede.
1. Modify the configuration variables in the scripts as needed.
2. Copy the scripts to `/usr/local/bin` (requires root):
install -m 755 -o root -g bin forumspam.sh /usr/local/bin/forumspam.sh
install -m 755 -o root -g bin q2a_usercheck.sh /usr/local/bin/q2a_usercheck.sh
install -m 640 -o _forumspam /dev/null /var/log/forumspam.log
3. Create the user the scripts will run as:
useradd -s /sbin/nologin _forumspam
4. If using `pf`:
4. Set up the firewall program
If using `ufw`, install it:
apt update
apt install ufw
If using `pf`:
Create appropriate permissions for the file:
@ -55,3 +63,6 @@ TODO:
* also check against [botscout](http://botscout.com/api.htm)
* give the scripts more sensible names
* also create an rc script
* support `iptables`
* create a Makefile
* merge the two scripts into one