Total Pageviews

Sunday, April 2, 2017

Updating site http to https

Add HTTP response header as below on IIS

Content-Security-Policy : upgrade-insecure-requests

Above will treat http request as secured.

Add a rule as below between <rules></rules> section

<rule name="HTTP to HTTPS redirect" stopProcessing="true">
  <match url="(.*)" />
    <conditions>
      <add input="{HTTPS}" pattern="off" ignoreCase="true" />
    </conditions>
  <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
</rule>

Monday, March 13, 2017

Getting IIS hosted web site's information

VBScript will fetch IIS web site's information. Just download and double click to run, a text file will be created with necessary information.

https://drive.google.com/open?id=0B8R1wPP0Gj58SDFTUjlhdWk2Um8



Monday, February 13, 2017

.Getting .NET framework versions

Go to CMD

This will display framework version

cmd:\> reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\full" /v version