This article mainly introduces how to use javascript to determine and obtain trusted sites in the registry, which can be used to determine trusted sites for domain names and IP addresses, for more information about how to use javascript to determine and obtain trusted sites in the registry, see the example in this article. Share it with you for your reference. The specific analysis is as follows:
To determine a trusted site, you must first find the location of the trusted site in the registry, as shown below:
(1) position of the domain name in the registry as a trusted site:
HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ InternetSettings \ ZoneMap \ Domains \\
(2) IP address as the location of the trusted site in the registry:
HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ InternetSettings \ ZoneMap \ Ranges
The specific test code is as follows:
Index. jsp:
Obtain and determine trusted sites (domain names and IP addresses)