"Comment CGI" is a CGI program which accepts one line comment from visitors of the web page. The program will notice you by email when it accepts a new comment. The program is simply written by C language and it doesn't depend almost anything. Therefore it's easy to run in a privillege separated process. This is used at http://yasuoka.net/~yasuoka/calendar.html
MTA running on 127.0.0.1:25/tcp
% cc -Wall -static -o comment.cgi comment.c
% touch comment-data.txt
% doas chown www comment-data.txt
% doas chmod 600 comment-data.txt
<script type="text/javascript"
src="http://code.jquery.com/jquery-latest.js">
$.get('comment-data.txt?s=' + new Date().getTime(), function(data) {
$("#comment").append(data);
});
</script>
<form action="./comment.cgi" id="commentForm" method="POST">
Your name: <input type="text" name="name" size="10" maxlength="20">
Comment: <input type="text" name="comment" size="40" maxlength="1024">
<input type="submit">
</form>
<ul id="comment">
</ul>