Determining Trusted Site using javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dlawner@gmail.com

    Determining Trusted Site using javascript

    Anyone know a way to determine if a particular url is a trusted site
    using javascript? I need to validate that a site is trusted before the
    user logs on.
  • Jeremy J Starcher

    #2
    Re: Determining Trusted Site using javascript

    On Thu, 14 Feb 2008 12:55:45 -0800, dlawner wrote:
    Anyone know a way to determine if a particular url is a trusted site
    using javascript? I need to validate that a site is trusted before the
    user logs on.
    Do you mean Trusted Site as Internet Explorer has categories, or sites
    that are trusted by a particular set or rules?

    If you mean the first, you might want to ask on a MS forum if one can
    access that data through MS scripting objects.

    That information is not available in the Javascript standard library.

    (*) Ok, there isn't a real standard library -- I know what I mean just
    not how to phrase it.

    Comment

    • Bart Van der Donck

      #3
      Re: Determining Trusted Site using javascript

      dlaw...@gmail.c om wrote:
      Anyone know a way to determine if a particular url is a trusted
      site using javascript? I need to validate that a site is trusted
      before the user logs on.
      Do you mean a website that connects over TLS (previously SSL) ? In
      that case you could check whether the URL starts with 'https://'
      rather than 'http://'.

      if (/^https:\/\//i.test(self.loc ation.href))
      alert('This page uses the TLS protocol.');



      Hope this helps,

      --
      Bart

      Comment

      • Thomas 'PointedEars' Lahn

        #4
        Re: Determining Trusted Site using javascript

        Jeremy J Starcher wrote:
        That information is not available in the Javascript standard library.
        >
        (*) Ok, there isn't a real standard library -- I know what I mean just
        not how to phrase it.
        What about "That information is not available without the use of an API."?


        HTH

        PointedEars
        --
        realism: HTML 4.01 Strict
        evangelism: XHTML 1.0 Strict
        madness: XHTML 1.1 as application/xhtml+xml
        -- Bjoern Hoehrmann

        Comment

        Working...