Restrict direct IP access

Hello Community!

I want to restrict direct ip access to my server on 443 port.

I want to use only fqdn.

Could you help me please?

Thanks!