Disabling IP address logging in Discourse is not a straightforward process due to the platform’s abuse prevention mechanisms. Despite discussions around EU GDPR compliance, no plugin has been developed to disable IP logging. However, there are alternative solutions. One approach is to use an external reverse proxy, such as NGINX, to mask IP addresses. As adriaan suggests, this can be achieved by setting the X-Real-IP to a fixed IP (127.0.0.1) in the NGINX configuration. This method is demonstrated in the provided code example.
Hello,
I successfully run discourse and now I’d like to disable logging users’ IP address.
There are many discussion of it as part of EU GDPR(2018, 2019), but I could not find the concrete solution for it.
You need ip addresses to fight abuse, so I think that most people have decided that the way that Discourse manages up addresses is not in violation of gdpr. I think that no plugin emerged to do what you ask.
A simple solution is to use an external reverse proxy and don’t configure discourse to use the reverse proxy ip address (which happens by default).