How to prevent Internal IP address leaking through HTTP headers

Open command prompt on the server where the web site is hosted.Change to the folder where the adsutil.vbs tool is located

C:\Inetpub>cd AdminScripts  

C:\Inetpub\AdminScripts>cscript adsutil.vbs set w3svc/1/UseHostName true 
where 1 is the site identifier

To find the site identifier:

click on the Web Sites major heading in the left hand side of the IIS admin tool and view the "Identifier" on the right hand side for whichever site you need.

Web site reference:


Popular Posts