473,396 Members | 1,929 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,396 software developers and data experts.

Control SSL error page or detect capable SSL connection?

Jan
Is it possible to somehow redirect users to a cutom page if their
browsers/firewall do not support SSL? Almost like a customized 404
page?

We'd like to offer SSL form submits by default, but show a special page
if SSL is not possible for the user.

Mar 6 '06 #1
2 5012
>Is it possible to somehow redirect users to a cutom page if their
browsers/firewall do not support SSL? Almost like a customized 404
page?
If the user clicks on a https: URL and the browser does not
support SSL, it doesn't contact your server in any way so
you have no way to know it failed.

You might possibly get around this with trying to load a subframe from
a secure page with JavaScript, which is Turned Off (tm). Javascript
is more likely to be turned off than SSL.
We'd like to offer SSL form submits by default, but show a special page
if SSL is not possible for the user.


You should provide the form via SSL (so the lock icon shows on the
page while the user is filling in the information). This also tests
that SSL works before the user spends time filling in the form and
then has it not work. You can provide a second link on the page
that leads TO the form, for use in case the first one doesn't work.

Gordon L. Burditt
Mar 6 '06 #2
"Jan" <ja*********@hotmail.com> wrote in message
news:11**********************@j33g2000cwa.googlegr oups.com...
Is it possible to somehow redirect users to a cutom page if their
browsers/firewall do not support SSL? Almost like a customized 404
page?

We'd like to offer SSL form submits by default, but show a special page
if SSL is not possible for the user.


Hi Jan,

From my knowledge with IIS I know this is possible from a server-side point
of view, though you have to cheat somewhat.

Within IIS Manager, locate the file/folder you require to be SSL enabled,
then go into file security - secure communications - edit and then tick
enable 'Require secured channel (SSL)'. Now viewing this page over a HTTP
connection will generate a 403 error message. Off the top of my head I
don't think you can do any kind of detection with this, as the error message
is generated from IIS before any pages are executed. By default this 403
error message is a typical one that Microsoft ship with IIS, plain white
background with the error:

"The page must be viewed over a secure channel
The page you are trying to access is secured with Secure Sockets Layer
(SSL).
blah blah blah"

Now, to redirect the user, simply create your own custom 403 error page that
contains redirect code (I prefer to use meta refresh as it's cleaner) and
using the 'Custom Errors' tab within the previous options in IIS, set the
default 403 error page to your new one.

Voila. Once people try and access your page using a non-secure connection
they'll get redirected to this new page.

This may not be useful to you if you intend to pass session variables and
the like, I really haven't tested it in much detail with PHP, but it may be
of some use to you.

Hope this helps,
Rich.
Mar 15 '06 #3

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

Similar topics

2
by: BadOmen | last post by:
I have just ordered a IR remote control that uses a serial port. This is the one: http://www.rbmods.com/Articles/Eksitdata/IRremote/1.php There is some program out there I can use to con troll...
4
by: SiuLoBow | last post by:
Hi, Is there anyway to detect the ActiveX control is able to run on the browser or not? After I installed the ActiveX control to my system, user sometimes switch the secruity setting to "not...
1
by: Supreme | last post by:
Hello! I am trying to structure the order of a series of forms that make up one record. Basically, I would like to detect the day of the week, and based on the day send the end user to a particular...
5
by: crunix | last post by:
Hello. I have developed a medical application with php 4 linked to IBM DB2 database. The database connection is right and i can access data with no problem...but sometimes when i reload the...
1
by: Roz Lee | last post by:
I have a page with two textboxes and two buttons which post back to the server. I want to detect which button has been clicked for testing purposes preferably clientside, but otherwise serverside....
12
by: Tom wilson | last post by:
This is the same topic as the thread above, "Dealing with the Back button". I'm getting nowhere. The closest I've come is a sample left for me: <%@ Page Language="vb" %> <!DOCTYPE HTML PUBLIC...
4
by: glenn | last post by:
Hi folks, I am getting an error "Object reference not set to an instance of an object". It seems I have everything in place but something is obviously in err. If you could take a quick peak...
1
by: Mad Scientist Jr | last post by:
For some reason I can't get a WebClient to access an outside URL from behind our firewall. The code works when it runs outside the firewall. I turned on windows authentication in the web.config...
9
by: mel | last post by:
Hi all, I need a persistent TCP connection with my web server over page reloads. This means that, even if the user goes to a different page (in my domain), I want to keep a TCP connection...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.