A header that says “user is under 18, no nsfw content” should generally be fine and should be sufficient, or websites could report a tag list like “tag: 18+ reason: explicit nudity” for the client to filter.
Voluntarily, not mandated by the government; and then without actual verification requirements.