473,387 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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.
Feb 14 '08 #1
3 4380
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.
Feb 14 '08 #2
dlaw...@gmail.com 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.location.href))
alert('This page uses the TLS protocol.');

http://en.wikipedia.org/wiki/Transport_Layer_Security

Hope this helps,

--
Bart
Feb 15 '08 #3
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
Feb 17 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: - Dazed | last post by:
If a user is using a combination of Win98 & any version of MSIE, I want to display a message. The best that I can do is the following: <? if ((strstr (getenv('HTTP_USER_AGENT'), 'MSIE')) &&...
4
by: rrober07 | last post by:
Hello, My Setup is I have a Web Server machine(Devweb01), Database SQL Machine(Devsql01), a Client Machine(local machine) I have configured the SQL machine as follows: 1) Added local Aspnet...
1
by: trpost | last post by:
Is there any way using javascript to prompt a user to add a site as a trusted site when they access the page if it is not already trusted?
3
by: drk.kumar | last post by:
Hi, I would like to add an url as a "Trusted" one(Manual way : Tools->InternetOptions->security->trusted sites). How do I make it through javascript code. Please let me know any sample code on...
2
by: Kam | last post by:
I am using SQL Server 2000 Analysis services and Office Web Components to display the information. when the user first time access the web site, he/she did to add it into the trusted site list,...
1
by: SofiaV | last post by:
Hello, 1.Add site toTrusted Sites List using javascript( programmatically ). Or 2.How to check it programmatically using javascript, if the specific site is included in the "Trusted Sites" ...
3
by: loganfoster | last post by:
I have a script that uses createelement to insert new rows into a page. Those inserted rows also have onchange events that fire, validating the identity of an account. The problem is that while...
4
by: eruth | last post by:
There are loads of post on this, but nothing that seems to cover my exact problem ;) I have an ASP.Net 1.1 web application running on my local machine. I want to connect to an SQL 2005 server...
1
by: simonsmith | last post by:
Hi All, Looking for a bit of help. The web based software my company uses (Siebel platform) is required to have its site address added as a trusted site. At the moment it is a generic address and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.