Stop HTTP Access
am 22.06.2006 12:32:45 von Thom Little
I have an ASP.NET 1.1 application on a Windows 2000 Server that can be
accessed as ...
http://name.tld or https://name.tld .
How can I force it to disallow the http access and only permit the https
access?
--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--
Re: Stop HTTP Access
am 23.06.2006 00:44:37 von Ken Schaefer
There is an option in IIS Manager: right-click the site/folder/file you wish
to secure -> properties -> security tab -> edit ssl security -> check the
"require SSL" checkbox.
Cheers
Ken
"Thom Little" wrote in message
news:uKEK3celGHA.3528@TK2MSFTNGP02.phx.gbl...
>I have an ASP.NET 1.1 application on a Windows 2000 Server that can be
>accessed as ...
>
> http://name.tld or https://name.tld .
>
> How can I force it to disallow the http access and only permit the https
> access?
>
> --
> -- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
> --
>
>
>
Re: Stop HTTP Access
am 23.06.2006 14:20:36 von Thom Little
I was finally able to get the owner of the server to set it as you suggested
so I could try it out.
It does exactly what I need.
Thank you.
The following code in my application pages forces it to connect with HTTPS
and is no longer needed...
private void Page_Load(object sender, System.EventArgs e)
{
if ( Request.Url.ToString( ).StartsWith( "http://" ) )
Response.Redirect( Request.Url.ToString( ).Replace( "http://",
"https://" ) );
}
--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
--
"Ken Schaefer" wrote in message
news:%23MxFD4klGHA.3588@TK2MSFTNGP02.phx.gbl...
> There is an option in IIS Manager: right-click the site/folder/file you
> wish to secure -> properties -> security tab -> edit ssl security -> check
> the "require SSL" checkbox.
>
> Cheers
> Ken
>
>
> "Thom Little" wrote in message
> news:uKEK3celGHA.3528@TK2MSFTNGP02.phx.gbl...
>>I have an ASP.NET 1.1 application on a Windows 2000 Server that can be
>>accessed as ...
>>
>> http://name.tld or https://name.tld .
>>
>> How can I force it to disallow the http access and only permit the https
>> access?
>>
>> --
>> -- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
>> --
>>
>>
>>
>
>