Http://localhost:5601/app/kibana ,how do I disable kibana url access

I have a project. I use kibana inside. There is a login system in my project. Access to kibana is provided after login. However, kibana is accessed from outside with http://localhost:5601/app/kibana url.
How can I prevent this?

You'd need to do this with a proxy or something, it's not functionality that Kibana can assist with that I am aware of sorry.