Parents can use secret codes as part of parental controls on websites to help keep their children safe online. By using a code to block certain sites, they can ensure their child is not accessing inappropriate content. The code can be common for most sites, with only the last few characters changed to the site name for easy recall.