Added the protect() method to protect against mass injection