···606606type IPCCResponse struct {
607607 CC string `json:"countryCode"`
608608 AgeRestrictedGeo bool `json:"isAgeRestrictedGeo,omitempty"`
609609+ AgeBlockedGeo bool `json:"isAgeBlockedGeo,omitempty"`
609610}
610611611611-// IP address data is powered by IPinfo
612612-// https://ipinfo.io
612612+// This product includes GeoLite2 Data created by MaxMind, available from https://www.maxmind.com.
613613func (srv *Server) WebIpCC(c echo.Context) error {
614614 realIP := c.RealIP()
615615 addr, err := netip.ParseAddr(realIP)
+109
src/components/BlockedGeoOverlay.tsx
···11+import {useEffect} from 'react'
22+import {ScrollView, View} from 'react-native'
33+import {useSafeAreaInsets} from 'react-native-safe-area-context'
44+import {msg, Trans} from '@lingui/macro'
55+import {useLingui} from '@lingui/react'
66+77+import {logger} from '#/logger'
88+import {isWeb} from '#/platform/detection'
99+import {atoms as a, useBreakpoints, useTheme, web} from '#/alf'
1010+import {Full as Logo, Mark} from '#/components/icons/Logo'
1111+import {SimpleInlineLinkText as InlineLinkText} from '#/components/Link'
1212+import {Text} from '#/components/Typography'
1313+1414+export function BlockedGeoOverlay() {
1515+ const t = useTheme()
1616+ const {_} = useLingui()
1717+ const {gtPhone} = useBreakpoints()
1818+ const insets = useSafeAreaInsets()
1919+2020+ useEffect(() => {
2121+ // just counting overall hits here
2222+ logger.metric(`blockedGeoOverlay:shown`, {})
2323+ }, [])
2424+2525+ const textStyles = [a.text_md, a.leading_normal]
2626+ const links = {
2727+ blog: {
2828+ to: `https://bsky.social/about/blog/08-22-2025-mississippi-hb1126`,
2929+ label: _(msg`Read our blog post`),
3030+ overridePresentation: false,
3131+ disableMismatchWarning: true,
3232+ style: textStyles,
3333+ },
3434+ }
3535+3636+ const blocks = [
3737+ _(msg`Unfortunately, Bluesky is unavailable in Mississippi right now.`),
3838+ _(
3939+ msg`A new Mississippi law requires us to implement age verification for all users before they can access Bluesky. We think this law creates challenges that go beyond its child safety goals, and creates significant barriers that limit free speech and disproportionately harm smaller platforms and emerging technologies.`,
4040+ ),
4141+ _(
4242+ msg`As a small team, we cannot justify building the expensive infrastructure this requirement demands while legal challenges to this law are pending.`,
4343+ ),
4444+ _(
4545+ msg`For now, we have made the difficult decision to block access to Bluesky in the state of Mississippi.`,
4646+ ),
4747+ <>
4848+ To learn more, read our{' '}
4949+ <InlineLinkText {...links.blog}>blog post</InlineLinkText>.
5050+ </>,
5151+ ]
5252+5353+ return (
5454+ <ScrollView
5555+ contentContainerStyle={[
5656+ a.px_2xl,
5757+ {
5858+ paddingTop: isWeb ? a.p_5xl.padding : insets.top + a.p_2xl.padding,
5959+ paddingBottom: 100,
6060+ },
6161+ ]}>
6262+ <View
6363+ style={[
6464+ a.mx_auto,
6565+ web({
6666+ maxWidth: 440,
6767+ paddingTop: gtPhone ? '8vh' : undefined,
6868+ }),
6969+ ]}>
7070+ <View style={[a.align_start]}>
7171+ <View
7272+ style={[
7373+ a.pl_md,
7474+ a.pr_lg,
7575+ a.py_sm,
7676+ a.rounded_full,
7777+ a.flex_row,
7878+ a.align_center,
7979+ a.gap_xs,
8080+ {
8181+ backgroundColor: t.palette.primary_25,
8282+ },
8383+ ]}>
8484+ <Mark fill={t.palette.primary_600} width={14} />
8585+ <Text
8686+ style={[
8787+ a.font_bold,
8888+ {
8989+ color: t.palette.primary_600,
9090+ },
9191+ ]}>
9292+ <Trans>Announcement</Trans>
9393+ </Text>
9494+ </View>
9595+ </View>
9696+9797+ <View style={[a.gap_lg, {paddingTop: 32, paddingBottom: 48}]}>
9898+ {blocks.map((block, index) => (
9999+ <Text key={index} style={[textStyles]}>
100100+ {block}
101101+ </Text>
102102+ ))}
103103+ </View>
104104+105105+ <Logo width={120} textFill={t.atoms.text.color} />
106106+ </View>
107107+ </ScrollView>
108108+ )
109109+}