Friday, May 11, 2012

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: 

http://support.microsoft.com/kb/834141

http://weblogs.asp.net/owscott/archive/2005/07/29/421058.aspx

No comments:

Post a Comment