How to disable direct https://ipaddress visit?

the reason is let all traffic go through the name server. you can only just visit from the domain name.