The public opinion is a court that almost never acquits and that only serves life-term sentences
An approach used in many contexts is to make the information accessible but put limitations on publication whether permanently or only until a conviction is made, so that people with an interest in a case can investigate while recognising mistakes are made.
[another approach is various levels of barriers to make access inconvenient, e.g. forcing you to go to an office to look up records rather than making them easily searchable; or for tax information in Norway: the tax information is public, but unless you're media - who get a copy - your name will be accessible to the person you looked up]
In the internet age it can heavily damage or ruin things like your job and dating prospects permanently.