I've seen a bunch of really bad takes going around about internet safety, how parents/adults have a responsibility to shepherd everyone else's kids, and how it's all just "stranger danger" again when you don't want to give out personal information.
Stranger Danger from an 80s - 90s kid who lived it
We talked to strangers. We talked to a LOT of strangers. We just knew how to do it safely.
"Don't talk to strangers" was not about never talking to people you didn't know. It was largely about sussing out appropriate help. For instance when I was little, I was always told that if I got lost in a store, I should go to the front of the store, find the checkout counter or customer service desk and ask for help, NOT just walk up to some random person in the store. When I was older I was taught that if I felt unsafe while walking alone I should duck into a store and ask the employees there to call my mom (remember, no cell phones).
I was taught to be very wary of someone randomly coming up to me to offer food or gifts andnot to get in a car with someone I didn't know who offered a ride, which if you think about it if you've ever been in a major city is a good way to avoid a lot of scams, not just kidnapping. It helped me at various points in my childhood learn to avoid religious missionaries on the street (no, I do NOT want that Watchtower, no, I do NOT want to come into your church, thanks). I was also taught not to open the door of our apartment for strangers, which is again a good way to avoid religious proselytizers and salespeople, as well as anyone who possibly might be casing your home.
The idea was to a) have a plan to ask for help, b) develop some discernment on WHO to ask for help, c) have some awareness that every single person you met might not have your best interests at heart. All of those things are still really important to know. The phrase "I don't talk to strangers" was an easy way to convey "I don't know you and I do not have enough information to decide if you are someone I should talk to right now," not "every stranger is going to kidnap me."
Kids in the 1980s and 1990s when "stranger danger" was a thing had a hell of a lot more freedom to interact with strangers than kids now - many if not most of us went places alone, took mass transit alone, carried out errands, stayed out with our friends all day, were sometimes home alone, and knew how to handle that. A fair number of the friends I had in my childhood were other kids that I randomly started talking to at the park, or wandering my neighborhood - I talked to strangers and made friends, in other words.
That also translated to being online. There were a lot of message boards, forums and websites for various interests, and people could and did just show up there and start talking to others who shared those interests. Some friendships that have endured 20 years or longer for me started when we both were in a forum talking about a band we both liked, or a movie we'd seen. We talked to strangers. We talked to a LOT of strangers. We just knew how to do it safely.
"Oh, we used to know not to give out personal information online and now every site wants it!" is not a misguided "stranger danger save the kids from mean adults!" thing.
EVERYONE was told that. ADULTS were told that.
A lot of the desire for you to use your real name and personal information online is for marketing and database creation. They want to know your interests and online activity so they can develop a better marketing profile for you. Why the hell do you THINK every company now wants you to use their app and tie it to your phone number? That's all valuable, sellable data for data brokers and marketers. YOU are the commodity. That data is also now potentially being used for things like ICE.
Using your real name online has led to people being fired, being rejected from colleges, etc. for nothing more than, say, being photographed drinking beer at a party or identifying as LGBT+. It's been used to take away people's disability benefits because they posted a photo where they smiled (yes, literally, this has been used against people) or didn't "look sick." Yes, it has also been used to identify people on the other side, but there's a cost to that. When your entire life is public and you have no privacy, there's a cost.
There actually IS a higher level of risk disclosing personal information online than there is in person. In your personal life you're unlikely to have literally a million people calling you or showing up at your door to scream homophobic insults, for example. That shit can and does happen online because more people have access to you. Internet trolls are a thing, and we can't pretend they are not. Things like swatting happen. If you're under an anonymous name on a fan site, that likely will not translate to being targeted in real life. If you're using your real name, disclosing where you live, your school or employer and your daily schedule as you live stream, it's a hell of a lot more likely that will translate to people harassing you offline, and that's happened.
At the time we were being told to guard our personal information, there were a LOT of dedicated, moderated places for children and teens to gather online and interact with others. Geocities, a website where you could create a free little website for yourself, had a children's section. There were Club Penguin, Yahooligans, and a lot of other websites specifically for kids and teens.
There was also software like Net Nanny that parents could install on their home computers that blocked access to certain sites or keywords, meaning it WAS taken as parents' responsibility to keep their kids safe. At the same time, with things like cable television, you could block certain stations to prevent your kids from watching them.
People did talk about themselves. People had websites about themselves and their likes, they wrote about their day on Livejournal or reviews movies they liked on whatever website existed for that. They interacted. The difference was that every single thing they did, every single place they went, every financial transaction, was not posted for the world.
Adults online do have a responsibility, in my opinion, to label and warn - tags and ratings on fanfiction; NSFW warnings on images; notices about flashing lights; etc. but again that is for everyone, not just kids. That 60 year old may not want to get fired because a nude image randomly popped up on an otherwise innocuous feed. That college student may not want to be triggered reading a fanfic about a topic they really need to avoid.
That does not mean there is not responsibility on the parents' end about their children. Maybe, just maybe, your six year old does not fucking need a cell phone with open access to the internet and social media. Maybe we should not be encouraging young people to put their entire lives online with no privacy, no room to make mistakes, and a drive for likes and favorites instead of actual engagement with others. That shit is a hell of a lot more toxic than "stranger danger" ever could be.