We are hosting a website locally. For this purpose, we have a public IP and corresponding DNS entry. We are using Apache 2.4 web-server. The website is publicly accessible without any problem. But website can also be assessed by proving public IP.
How can I avoid IP based public access of my website ? Should I update Apache (virtual host) configuration or where it should be handled ?
I know how to restrict client (IP) in Apache but my case is totally different.