Update before insert comment function. Add support for blacklist