Configuring Apache to Restrict Access by IP Address
To prevent direct access to a web site via its IP address while allowing access through a designated domain name, modify the Apache configuration file, typical named httpd.conf or included virtual host files. This involves setting up virtual hosts to handle requests differently based on the server n...