Disable per user access/usage statistics

AI-generated summary

In a support discussion titled ‘Disable per user access/usage statistics,’ Roland raises a concern that the user statistics page (/u) on some Discourse instances is visible without authentication and may violate German DSGVO. He recommends a global admin setting to hide both user profiles and usage statistics, regardless of authentication status. Falco responds that the /u page can already be disabled via a site setting, and that public access to user profiles can be restricted using the setting hide user profiles from public. Roland follows up asking if it’s possible to hide the user directory/statistics only from unauthenticated users. sbernhard asks whether it’s possible to completely remove the statistics from /u/theUser/summary, noting that CSS hiding doesn’t truly remove the data. pfaffman suggests that removing the data from the serializer would require a plugin, which could be fragile and break with updates. pfaffman reiterates the hide user profiles from public setting as a potential solution. IrisBetty asks for guidance on installing such a plugin, indicating a need for beginner-friendly instructions. The discussion centers on privacy compliance, visibility controls, and technical implementation options for hiding user statistics in Discourse.

hello,
i have come across Discourse Meta statistics page (on some german discourse) and i think this is not compliant with German DSGVO ( General Data Prodection Regulation) . discussion is still going on…

what makes things worse - it’s even visible without authentification.

i would expect/recommend some global admin option so that

  • user profile information would be hidden with or without authentication
  • user usage statistic would be hidden with or without authentication
    (maybe statistics could be part of profile information)

regards
roland

You can disable the linked page (/u) using a site setting since 2015:

You can also disable profiles for anons using hide user profiles from public.

thank you.

is there a way to hide the user dir/statistics page for unauthenticaed clients only ?

Is it somehow possible to hide the statistics on /u/theUser/summary completely? Of course it can be done by CSS but then, its still “on the page” and just invisible for users (… who don’t know how to use the developer tools to enable the hidden stats again :slight_smile: )

I believe that you’d need a plugin to remove those data from the serializer. I’m not expert at such, but I think you’d need to override that code. It’s the kind of plugin that’s likely to break when the thing you’re overriding changes.

Maybe you want the site setting

* hide user profiles from public

This sounds cool. Any hints or a newbie how to get started installing something like this?