Some handy functions that can be used to increase site security.