Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking if the web page is secure

Status
Not open for further replies.
Joined
Sep 29, 2002
Messages
524
Location
US
Hello,
I have a web site that I want to show certain things only if the page loaded is secure. Can any one guide me what code to use to do this? What are the environmental variables that I need to test? Baesically, I want to have something like this:

If (Page is using https)

Write this ....

Else

White Something different

Thanks in advanced for your help and time,


Gladys Rodriguez
GlobalStrata Solutions
Computer Repair, Website Design and Computer Consultant
Small Business Resources
 
If the content is sensitive in nature, you should do this on the server-side. Otherwise, simply check to see if the first 5 characters of location.href are "https".

Adam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top