see http://igorpopov.newmail.ru/mod_jail/