How to Prevent Users from Accessing the Badge Page in Discourse?

And next, you will find out that the search returns users.

What is the actual problem you want to solve?