By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,586 Members | 623 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,586 IT Pros & Developers. It's quick & easy.

locking to https

P: n/a
I have a credit card page on my asp.net site and i want to make sure it only
runs on a secure connection. Is there a way to make a page not run or to
redirect it to the secure connection?

Thanks
Tommy
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
you can force this in IIS as the folder level.
--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Tommy Martin" <tm*****@xspam-tlmartin.com> wrote in message
news:OX**************@TK2MSFTNGP12.phx.gbl...
I have a credit card page on my asp.net site and i want to make sure it only runs on a secure connection. Is there a way to make a page not run or to
redirect it to the secure connection?

Thanks
Tommy

Nov 18 '05 #2

P: n/a

Never trust IIS to do what you can do yourself in code, unless you *really*
trust the people, IT guys, or script that set your IIS settings.

Ideally, you should set IIS correctly (as this will be faster on the
server), as well as code for redundancy. You can add this to your
page_load...

if (!Request.IsSecureConnection) Response.Redirect("https://secureserver");

--------------------------------------------------------------------
This reply is provided AS IS, without warranty (express or implied).
--------------------
From: "Curt_C [MVP]" <software_AT_darkfalz.com>
References: <OX**************@TK2MSFTNGP12.phx.gbl>
Subject: Re: locking to https
Date: Thu, 29 Jan 2004 08:43:12 -0600
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <#3**************@TK2MSFTNGP10.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: 208.252.151.83
Path: cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08
.phx.gbl!TK2MSFTNGP10.phx.gblXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.aspnet:206087
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

you can force this in IIS as the folder level.
--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Tommy Martin" <tm*****@xspam-tlmartin.com> wrote in message
news:OX**************@TK2MSFTNGP12.phx.gbl...
I have a credit card page on my asp.net site and i want to make sure it

only
runs on a secure connection. Is there a way to make a page not run or to
redirect it to the secure connection?

Thanks
Tommy



Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.