473,467 Members | 1,373 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

locking to https

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
2 1045
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

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: kiran | last post by:
Hi, I hosted a PHP project on my web server(IIS) and I am accessing the ip addres through my office public address like this: (example) https://61.95.204.43:8887/phptest/test.php ...
2
by: Craig Keightley | last post by:
i have the following script on my checkout page to check if https is set in the address bar: if ($_SERVER != "on") { $url = $_SERVER; $query = $_SERVER; $path = $_SERVER; header("Location:...
16
by: Paul Sweeney | last post by:
Does anyone know of a working (python) https proxy which allows viewing of unencrypted data being sent from my browser to an https site? I've worked my way through most on the list at...
16
by: Nid | last post by:
How do I do row-level locking on SQL Server? Thanks, Nid
2
by: Henk | last post by:
Isn't it so that when you are creating DIVs you are defining a part of the used layout? I will give an example. I set up two DIV's: ID 'main_story' and ID 'summary'. After setting this up I...
14
by: Peter Chant | last post by:
I'm currently authenticating a site I have built using basic http authentication built into apache. This has zero overhead on php which is a bonus but it seems to not quite work how I'd like. ...
4
by: Jason P | last post by:
Basically we have a web method with a dynamic URL. The client is developed in C++ and I've been using the webReference.SetUrl( "http://test.example.com..." ) method successfully with various web...
0
by: xpding | last post by:
Hello, I have a class MyEmbededList contains a generic dictionary, the value field is actually the MyEmbededList type as well. There is another class need to access and manipulate a list of...
0
by: Cindy Huyser | last post by:
I have an Access 2000 database behind a threaded Java application that that can have have concurrent access to the same table (but not the same record). The database is set up for shared access...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.