Skip to content

IsChinaByEmoji – A way for browser to detect if a user is from China

github.com/yArna
10 pointsphantomathkg3 comments
On HN

Comments

    - /** Determine if the current device is from mainland China using Emojis
    - * If the *Taiwan flag* characters cannot be displayed in color (rendered as black and white letters or not rendered at all), it indicates a device more likely to be from mainland China.
    - * To avoid false positives, *smiley face* will be used as a comparison:
    - * If the device cannot even render regular Emojis in color (such as Linux without colored Emoji fonts,
    - * a browser with fingerprint protection enabled), it returns null to indicate that it cannot determine the source, rather than falsely reporting true. */

Location via censorship detection, clever!

Canvas pixel readback is a common fingerprinting vector, isn't it blocked behind a permission popup?

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.