Hi,
How would I detect if a server is running securely (https) or not?
Try
If Request.Url.Scheme.Equals("https") Then
' Is secure...
End If
A better approach would be to restrict the access to the application by
IIS, which allows to force the use of SSL. In this case you won't have
to check programmatically.
--
Karsten Samaschke
IT-Consulting, IT-Development, IT-Training
5x MS MVP ASP / ASP.NET, Germany
Homepage:
http://www.ksamaschke.de
- - - - - - - - - - - - - - - - - - - - - - - - - -
My Weblog:
http://www.karsan.de
My Books:
http://books.ksamaschke.de