SecurityLevel Property  
 

Returns the overall security level for the current page.

Syntax

object.SecurityLevel

Remarks

The SecurityLevel property returns the security level for the current page. It can be one of the following values:

Constant Value Description
webSecurityLevelUnknown 0 The security state could not be determined.
webSecurityLevelInsecure 1 The page was retrieved using plain HTTP or the site has an invalid certificate.
webSecurityLevelWarning 2 The page contains mixed content or only weak encryption is available.
webSecurityLevelNeutral 3 Local content or the browser is in a transitional/loading state.
webSecurityLevelSecure 4 The page was retrieved using HTTPS and the site has a valid certificate.

For a simple security check, the Secure property can determine if a page was retrieved using a secure, encrypted connection. If the property returns True, it means a secure connection was used and there were no problems with the server's certificate (e.g., the domain names match and the certificate hasn't expired). It is effectively the same as checking for a security level greater than webSecurityLevelNeutral.

For more detailed information about a secure connection, check the value of the Certificate and Encryption properties.

Data Type

Integer (Int32)

See Also

Certificate Property, Encryption Property, IsNavigating Property, NavigationCompleted Event, SecurityChanged Event