3 ms·
My blog is static, when comments are submitted they are POSTed to one dynamic end-point (i.e. a CGI-script) which writes them to "comments/$file". I moderate b
by stevekemp 8y ago
My blog is static, when comments are submitted they are POSTed to one dynamic end-point (i.e. a CGI-script) which writes them to "comments/$file".
I moderate by moving to "comments/good/$file", or "comments/spam/$file" as appropriate. Then I pull them down to my desktop (via rsync) as part of my build-process to include all the comments beneath "comments/good".
In short my blog is static, comments get written to disc, and the next time I rebuild the blog I pick up new comments - unless they're spam. The CGI also sends me an email so I know to do the necessary every few hours/days.
Of course moderation, and spam-detection, is annoying. So I outsource that to https://blogspam.net/ https://blogspam.net/ which is a service I created & maintain.