Sooner or later, most children who use any kind of messaging feature will receive contact from someone they don't know. It might be entirely harmless, or it might not be, and a child on their own has no reliable way of telling the difference in the moment.
Rather than waiting for this to happen and reacting afterwards, it helps to talk it through calmly in advance. A simple rule, such as always telling a parent before replying to someone unfamiliar, gives the child something concrete to follow without needing to make a difficult judgement alone.
Keeping the conversation calm and open
It matters that this conversation doesn't come across as frightening, since fear can make a child hide a message rather than share it. A steady, matter-of-fact tone helps far more than a list of dramatic warnings that might make the whole topic feel too scary to mention.
Practising the situation together, perhaps by imagining what a stranger's message might look like, gives the child a chance to think it through without any real pressure. This kind of gentle rehearsal often makes the actual moment far easier to handle when it eventually arrives.
It is worth repeating this conversation occasionally rather than treating it as something said once and then forgotten. Children grow and their understanding changes, so returning to the topic now and then keeps the message fresh without turning it into a lecture.
With this groundwork in place, a child is far more likely to come forward the moment something feels odd. That simple habit of telling a parent, built early and reinforced gently, matters more than any single rule on its own.
It helps to praise a child for speaking up, even if the message in question turns out to be entirely harmless. Making them feel glad they mentioned it, rather than foolish for worrying, keeps that channel of communication open for the next time something feels uncertain.
Older siblings can also play a useful part here, since a child often finds it easier to mention something to a brother or sister first. Encouraging that wider circle of trust means a worry is less likely to be carried alone for very long.