WebBrowser Control(四)URL Security Zones

  • Terms
    • URL action. A browser action that can pose a security risk to the local computer.
    • URL policy. A policy that determines which permission or trust level is set for a particular URL action.
    • URL security zone. A group of URL namespaces that are assigned an equal level of permissions (or trust). Each URL action for the zone has an appropriate URL policy assigned to it that reflects the level of trust given to the URL namespaces in that zone.
    • URL security zone template. A tool that allows users to specify levels of restriction using easy-to-understand terms: High, Medium-High, Medium, Medium-Low, and Low.
  • Default URL security zones:

    • Local Intranet Zone(本地Intranet)
    • Trusted Sites Zone(可信站点)
    • Internet Zone
    • Restricted Sites Zone(受限站点)
    • Local Machine Zone(本机)
  • 结构体(urlmon.h
    •  1 typedef 
      2 enum tagURLZONE
      3 { URLZONE_PREDEFINED_MIN = 0,
      4 URLZONE_LOCAL_MACHINE = 0,
      5 URLZONE_INTRANET = URLZONE_LOCAL_MACHINE + 1,
      6 URLZONE_TRUSTED = URLZONE_INTRANET + 1,
      7 URLZONE_INTERNET = URLZONE_TRUSTED + 1,
      8 URLZONE_UNTRUSTED = URLZONE_INTERNET + 1,
      9 URLZONE_PREDEFINED_MAX = 999,
      10 URLZONE_USER_MIN = 1000,
      11 URLZONE_USER_MAX = 10000
      12 } URLZONE;
  • 参考:
posted @ 2011-10-18 11:07  iThinking  阅读(462)  评论(0编辑  收藏  举报