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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Secure Server Methods 1

Status
Not open for further replies.

uberskunk

Programmer
Apr 9, 2003
28
GB
Hi,

Can anyone give me a method of automatically redirecting my web intro page to a secure web page after a few seconds or on a 'skip intro' link.

I have coded the following but I'm just not sure if it really works. I get the right output the web address contains the https but is that enough to make it a secure site?

<%

ssSecureURL = &quot;ssSecureURL = ssSecureURL & Request.ServerVariables(&quot;SERVER_NAME&quot;)

%>
<a href=&quot;<%=ssSecureURL%>/Secure/BLMFrmContainer.asp&quot;><FONT size=2>Skip Intro</FONT></A>


Any help would be great,
thanks
 
Yes. What happens is when your browser sees the https preceding the URL/URI it automatically contacts your webserver on the secure port for communication instead of the standard port 80 (default web port), which it also knows to use encryption on. This is the same as if you precede the address with ftp, nntp, etc (you get the ftp[ port and the news port, respectively, unl;ess I forgot the news acronym again :p)

-Tarwn

01010100 01101001 01100101 01110010 01101110 01101111 01101011 00101110 01100011 01101111 01101101
29 3K 10 3D 3L 3J 3K 10 32 35 10 3E 39 33 35 10 3K 3F 10 38 31 3M 35 10 36 3I 35 35 10 3K 39 3D 35 10 1Q 19
Get better results for your questions: faq333-2924
Frequently Asked ASP Questions: faq333-3048
 
Thank you very much.

That is very useful to know.


Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top