When I type ip into browser my web page pops up.
How to disable that ? Only allow access via domain name.
The only thing you can do is redirect the IP to the domain, I suppose (although I don’t know if that would create an infinite loop). You see, the IP is the actual address that computers use to identify the server, the domain name is just a human readable replacement that is resolved into the IP internally.