I have a site that uses https (Secure Sockets) and http intermingled. There
are some pages that I would like to prevent people from accessing unless
they come in via https. For example, let's say I have the page "fred.html"
and I only want people to be able to access it via SSL, as such:
https://www.xyz.com/fred.html
is there a way to give them an error message (or cause an automatic
redirect) if they type in:
http://www.xyz.com/fred.html
How 'bout a way to just issue the error message if they try to use a browser
with no SSL capabilities?
Would a simple redirect perl script that checks the path be the answer? Such
as (in plain terms):
1. look at the path of the url
2. see if it has https:
3. if it doesn't issue an error message (or, if it's possible to detect SSL
capabilites of the browser, and SSL is a capability, redirect to https:)
4. if https: was in the url, load the page (print location)
Any other ideas? I'm on a Unix server. Maybe the above as an SSI stuck into
each html page that needs checking?
TIA,
Jack
____________________________________________________________________
--------------------------------------------------------------------
Join The Web Consultants Association : Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------