跳到正文
DEV Community· Asael Shinder·· 7 小時前AI 評分51

更多網上產品或需確認用戶年齡

More of What You Build May Need to Know How Old the User Is

AI 導讀

多地年齡保障規管正令更多網上產品需要確認用戶年齡,相關設計與落實工作逐漸落到開發團隊身上。常見方式包括人臉估齡、核對身份證件、由銀行或流動網絡商確認,以及使用數碼身份錢包。作者建議只保留核驗結果、不保存照片或證件,並為無法通過常用方式的用戶提供替代途徑。

正文

Asael Shinder

For most of the history of the web, checking a user's age meant a box that said I am over 18. Everyone knew it proved nothing. That is changing, and the work of building something better is landing on development teams.

In the United Kingdom, since July 2025, sites that allow pornography or certain other harmful content have had to use what the regulator, Ofcom, calls highly effective age assurance. In Australia, social media platforms have had to take reasonable steps to stop children under sixteen from having accounts since December 2025. Several US states have passed their own age laws, and the European Union has been testing an age verification app. The details differ, but the direction is the same.

What does age assurance actually look like? There are a few common methods. Estimating age from a selfie, using a model trained on faces. Checking a photo of an identity document. Asking a bank or mobile operator to confirm the person is an adult. Or using a digital identity wallet that can confirm someone is over eighteen without revealing their name or date of birth. Each has a different balance of accuracy, cost, convenience and privacy.

Most teams will not build these themselves. They will connect to a specialist provider, much as they do for payments. But the decisions around it are still yours. Which parts of the product need a check, and which do not? What happens to the photo or document afterwards? The safest answer is almost always that you keep only the result, over or under, and never the evidence. What happens to an adult who has no passport, or whose face the model misjudges? There must be another route.

There is also a design question. If you know a user is fifteen, what should change? Default privacy settings, who can message them, what is recommended to them. Regulators increasingly expect the product to behave differently, not just the sign up page.

You do not need to work on social media for this to reach you. Gaming, forums, dating, shops that sell age restricted goods, and anything with chat may all be affected.

It is worth learning the basics now. Age checking is becoming one more part of a product that has to be built carefully, with the user's privacy at its centre.

– Asael Shinder

來源:DEV Community · dev.to