The original answer explained the purpose of parental controls and then, in the next line, swore at the asker. The useful part is worth keeping.
Parental controls exist so that age-inappropriate content and online communication can be limited when an adult is not in the room. On the PS3 they are split across two systems, which is where most confusion comes from.
Under Settings you will find parental control levels for games, films and the browser, all protected by a four-digit PIN. Set the level to match the youngest player and the console will block anything rated above it.
Online play and chat are governed separately, under the account and network settings. You can disable online features per user, which is the only reliable way to stop a child from joining multiplayer sessions or opening messages from strangers.
Keep the console in a shared room and talk about who they are playing with. Technical blocks are a floor, not a substitute for supervision.