IIS settings prohibit /open IP directly open the website

  
First, after opening the IIS Manager, find the corresponding website under the website on the left side of the IIS Manager, right-click to open the website properties, enter the relevant IIS website property settings. (IIS opens the website properties method) Find and click "Advanced" in the Default <;Website" tab in the Website Properties window, as shown below. (IIS opens the website advanced website logo) In the advanced website logo, the default host header value is generally empty. If you want someone to directly enter the IP address to access the website, regardless of it, the protection is empty. If you do not want others to directly enter the IP to access the website, you need to select the logo in the website and click Edit, set the corresponding port number and website host header value in the Add/Edit Website Identification window. (IIS website advanced network station identity settings) Editor's Note: IIS's website host header value is the resolved domain name. Generally speaking, we are all domain names. The following is the website logo is directly empty, which means that the host header value is not set. You can access the website in the server by entering the IP address directly. (Using the IP address to access the server website) The above is the host header that has been edited. That is to say, if the value of the host value that was originally empty is changed, there will be cases where the IP address cannot be accessed. The server usually returns a prompt for "Bad Request(Invalid Hostname)" when the IP address is directly entered. It has reached a directory that prohibits the use of IP addresses to access server websites. (IIS prohibits IP address access to the server website)
Copyright © Windows knowledge All Rights Reserved