[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] SSL ?
- Subject: Re: [cobalt-users] SSL ?
- From: "Brian N. Smith" <support@xxxxxxxxxx>
- Date: Fri Apr 18 19:52:52 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
----- Original Message -----
From: "Jason Gottschalk" <Jason@xxxxxxx>
Subject: [cobalt-users] SSL ?
> Hello cobalt-users,
>
> The problem is that i can get to the form from both http and https.
>
> How do I prevent the http:// url from working?
>
> --
> _____________________________________
Jason,
You can always build it into your app ... if you are using some type of
DHTML (ASP/PHP/PERL) etc, you can use the APACHE environment variables ...
here are some that I know PHP supports:
SCRIPT_URI
SERVER_PORT
Like your code can look like this (PHP Example)
<?php
if ( $_SERVER["SERVER_PORT"] != 443 )
{
?>
I am sorry, but you need to be connecting via SSL, try this link instead:
<br>
<a href="https://www.domain.com/this_file_is_secure.php">
https://www.domain.com/this_file_is_secure.php
</a><br>
<?php
exit;
} else {
# Rest of script here
?>
<?php
}
?>
Hope that helps you out ... if you wanna code it instead of working with
.htaccess or messing with the httpd.conf.
Enjoy!
Brian N. Smith
NuOnce Networks
www.nuonce.net
Free Cobalt Stuff Located Here
Something like that is how you can do it in PHP ... Of course, there are
numerous ways that you can implement this, you just need to be creative! :-)