Disable preview function on "list website"

Hi everyone. How can i disable “Preview” function? I don’t want that my website opens on ip, only on domain.

https://100.100.100.100:8090/preview/domain.com/ - works even when you’re not logged in, I don’t think it should be.

I don’t want to worry about how Google or any other search engine will treat the duplicate site.

I looked for a solution on the forum, but did not find it.

Or a more correct question would be - how to prohibit showing a site on ip?