That kind of warning exists because a lot of people are being scammed. Warning people not to let strangers have access to their PC seems like the right thing to do.
It can be done much more elegantly. E.g. when you’re trying to actually set up a connection and not on the front page for all of your users coming to the site, especially those with `Referer=news.ycombinator.com`