CGI chat shell script

This script allows to implement a simple cgi chat. It saves the chat messages in a flat file.

Installation

Access control must be done with '.htaccess' or other external means. A skeleton htaccess file is included as example.htaccess which requires setting of the absolute path to the necessary .htpasswd password file. Please make sure you understand the workings of htaccess etc. Any risk is with you!

Notes

Users are identified by the content of the environment variable REMOTE_USER, or if that is empty, by REMOTE_ADDR.

At the beginning of the script, a mailer may be defined which can be triggered by a special message (by default 'xxxmail'), resulting in some of the most recent chat lines being sent to a predefined recipient by e-mail. Please see the source!


2019-Mar // Yargo/HB9KNS