I would like my server to not serve the home page when it is accessed by its IP address.
This is to prevent worms from spidering the site. Worms randomly scan for IP addresses and they might spot the site. If the site only responds to domain names, then most worms that just scan for IP addresses will not reach the site.
How could a web server be configured to respond only to the requests made to the domain name and not the IP address?
You must define what is called a catch-all domain.
The exact configuration depends on the web server type and version you use, for instance on Apache 2 it will go through the definition of a _default_
vhost.
The idea though remains always the same:
Once you know the name, "catch-all domain", you should have no difficulties to check your web server documentation or online How-to's to learn how to implement this feature in your own environment.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다