Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Non secure items on SSL in asp.net

 
Thread Tools Search this Thread
Old 07-26-2004, 04:49 PM   #1
Default Non secure items on SSL in asp.net


I created a project and it looks like everything is loading under HTTPS on
all the pages perfectly except one page that it loads saying that the page
contains both secure and non secure items... how would i check to see which
items are loading that are insecure on IIS? the page is writen in ASP.NET, I
know exactly which control is doing it (a custom writen one) but i cant seem
to figure out what in the control is doing it... is there logs or anything i
can debug to figure out what is causing this dialog to load asking if i want
to load the insecure items or not? thanks (in SSL connections the source
code is unviewable so i cant do it the easy way out)




Brian Henry
  Reply With Quote
Old 07-26-2004, 05:30 PM   #2
Nicole Calinoiu
 
Posts: n/a
Default Re: Non secure items on SSL in asp.net
Brian,

Looking at the server side of things won't necessarily help you since the
item that is not being requested over https doens't necessarily come from
your site. A better approach is to look at the html source on the client,
which should be human-readable even if it's been loaded over https. The
kinds of things that might be causing the problem are:

1. Any request over http. A simple search for "http:" (without the quotes)
should reveal this.
2. Any frame, iframe, or img tags with a blank or unspecified src
attribute.
3. Any use of "about:____" pages. An example of this would be a frame
whose src attribute is set to "about:blank".

HTH,
Nicole


"Brian Henry" <> wrote in message
news:...
>I created a project and it looks like everything is loading under HTTPS on
> all the pages perfectly except one page that it loads saying that the page
> contains both secure and non secure items... how would i check to see
> which
> items are loading that are insecure on IIS? the page is writen in ASP.NET,
> I
> know exactly which control is doing it (a custom writen one) but i cant
> seem
> to figure out what in the control is doing it... is there logs or anything
> i
> can debug to figure out what is causing this dialog to load asking if i
> want
> to load the insecure items or not? thanks (in SSL connections the source
> code is unviewable so i cant do it the easy way out)
>
>





Nicole Calinoiu
  Reply With Quote
Old 07-26-2004, 05:59 PM   #3
bruce barker
 
Posts: n/a
Default Re: Non secure items on SSL in asp.net
if you hit your site with netscape or mozilla, you can use PageInfo to
determine this easily.

-- bruce (sqlwork.com)


"Brian Henry" <> wrote in message
news:...
> I created a project and it looks like everything is loading under HTTPS on
> all the pages perfectly except one page that it loads saying that the page
> contains both secure and non secure items... how would i check to see

which
> items are loading that are insecure on IIS? the page is writen in ASP.NET,

I
> know exactly which control is doing it (a custom writen one) but i cant

seem
> to figure out what in the control is doing it... is there logs or anything

i
> can debug to figure out what is causing this dialog to load asking if i

want
> to load the insecure items or not? thanks (in SSL connections the source
> code is unviewable so i cant do it the easy way out)
>
>





bruce barker
  Reply With Quote
Old 07-26-2004, 06:12 PM   #4
Kevin Spencer
 
Posts: n/a
Default Re: Non secure items on SSL in asp.net
It's not a matter of whether an item is "insecure on IIS" - an item is
secured via its URL. If it begins with "https" it is secure. Well, it's a
bit more complicated than that, due to relative URLs in a page. When a page
has a relative URL (e.g. "someFolder/someitem.aspx" or
"/someFolder/someItem.jpg"), the base portion of the URL (which includes the
protocol) is appended from the present location to the URL to form the
complete URL. So, for example, let's say you click a link that has an
absolute URL of "https://..." That page is secured via HTTPS. Now you click
a link on that page which is relative, to another page (e.g.
"/someFolder/somePage.aspx"). The protocol portion of the URL is appended to
the link to create an absolute one by the browser. So, the second page,
regardless of the lack of "https" in the link, because it is a relative URL,
is still secure. In fact, to get to a non-secured page, you would have to
use an absolute URL, with the protocol included, to change the base protocol
portion of the URL to a non-scured (HTTP) address.

An HTML document can include other resources in it, such as images. If the
URLs of these images are relative, and the page they are in is reached via
HTTPS, they will also be requested using HTTPS. However, there are times
when not all of the resources in a page have the same protocol. This results
in the type of message you saw.

The most bullet-proof way to prevent this: Use all absolute URLs in the
page.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Brian Henry" <> wrote in message
news:...
> I created a project and it looks like everything is loading under HTTPS on
> all the pages perfectly except one page that it loads saying that the page
> contains both secure and non secure items... how would i check to see

which
> items are loading that are insecure on IIS? the page is writen in ASP.NET,

I
> know exactly which control is doing it (a custom writen one) but i cant

seem
> to figure out what in the control is doing it... is there logs or anything

i
> can debug to figure out what is causing this dialog to load asking if i

want
> to load the insecure items or not? thanks (in SSL connections the source
> code is unviewable so i cant do it the easy way out)
>
>





Kevin Spencer
  Reply With Quote
Old 07-26-2004, 06:49 PM   #5
Brian Henry
 
Posts: n/a
Default Re: Non secure items on SSL in asp.net
eek, we're doing a secure email system which uses IFrames for HTML email
editing... that must be whats causing it... how would you fix this? thanks


"Nicole Calinoiu" <> wrote in message
news:...
> Brian,
>
> Looking at the server side of things won't necessarily help you since the
> item that is not being requested over https doens't necessarily come from
> your site. A better approach is to look at the html source on the client,
> which should be human-readable even if it's been loaded over https. The
> kinds of things that might be causing the problem are:
>
> 1. Any request over http. A simple search for "http:" (without the

quotes)
> should reveal this.
> 2. Any frame, iframe, or img tags with a blank or unspecified src
> attribute.
> 3. Any use of "about:____" pages. An example of this would be a frame
> whose src attribute is set to "about:blank".
>
> HTH,
> Nicole
>
>
> "Brian Henry" <> wrote in message
> news:...
> >I created a project and it looks like everything is loading under HTTPS

on
> > all the pages perfectly except one page that it loads saying that the

page
> > contains both secure and non secure items... how would i check to see
> > which
> > items are loading that are insecure on IIS? the page is writen in

ASP.NET,
> > I
> > know exactly which control is doing it (a custom writen one) but i cant
> > seem
> > to figure out what in the control is doing it... is there logs or

anything
> > i
> > can debug to figure out what is causing this dialog to load asking if i
> > want
> > to load the insecure items or not? thanks (in SSL connections the source
> > code is unviewable so i cant do it the easy way out)
> >
> >

>
>





Brian Henry
  Reply With Quote
Old 07-26-2004, 07:18 PM   #6
Nicole Calinoiu
 
Posts: n/a
Default Re: Non secure items on SSL in asp.net
Brian,

Instead of using blank src attributes for your iframes (unspecified or
src="" or src="about:blank"), use a real page from your site when you want
the iframe to appear to be empty. e.g.: <iframe src="blank.htm"... where
blank.htm has html source like the following:

<html>
<head>
<title>Blank page</title>
</head>
<body>
</body>
</html>

HTH,
Nicole



"Brian Henry" <> wrote in message
news:...
> eek, we're doing a secure email system which uses IFrames for HTML email
> editing... that must be whats causing it... how would you fix this? thanks
>
>
> "Nicole Calinoiu" <> wrote in message
> news:...
>> Brian,
>>
>> Looking at the server side of things won't necessarily help you since the
>> item that is not being requested over https doens't necessarily come from
>> your site. A better approach is to look at the html source on the
>> client,
>> which should be human-readable even if it's been loaded over https. The
>> kinds of things that might be causing the problem are:
>>
>> 1. Any request over http. A simple search for "http:" (without the

> quotes)
>> should reveal this.
>> 2. Any frame, iframe, or img tags with a blank or unspecified src
>> attribute.
>> 3. Any use of "about:____" pages. An example of this would be a frame
>> whose src attribute is set to "about:blank".
>>
>> HTH,
>> Nicole
>>
>>
>> "Brian Henry" <> wrote in message
>> news:...
>> >I created a project and it looks like everything is loading under HTTPS

> on
>> > all the pages perfectly except one page that it loads saying that the

> page
>> > contains both secure and non secure items... how would i check to see
>> > which
>> > items are loading that are insecure on IIS? the page is writen in

> ASP.NET,
>> > I
>> > know exactly which control is doing it (a custom writen one) but i cant
>> > seem
>> > to figure out what in the control is doing it... is there logs or

> anything
>> > i
>> > can debug to figure out what is causing this dialog to load asking if i
>> > want
>> > to load the insecure items or not? thanks (in SSL connections the
>> > source
>> > code is unviewable so i cant do it the easy way out)
>> >
>> >

>>
>>

>
>





Nicole Calinoiu
  Reply With Quote
Old 07-26-2004, 07:22 PM   #7
Brian Henry
 
Posts: n/a
Default Re: Non secure items on SSL in asp.net
ahh thank you, ill see if that corrects the problem

"Nicole Calinoiu" <> wrote in message
news:...
> Brian,
>
> Instead of using blank src attributes for your iframes (unspecified or
> src="" or src="about:blank"), use a real page from your site when you want
> the iframe to appear to be empty. e.g.: <iframe src="blank.htm"... where
> blank.htm has html source like the following:
>
> <html>
> <head>
> <title>Blank page</title>
> </head>
> <body>
> </body>
> </html>
>
> HTH,
> Nicole
>
>
>
> "Brian Henry" <> wrote in message
> news:...
> > eek, we're doing a secure email system which uses IFrames for HTML email
> > editing... that must be whats causing it... how would you fix this?

thanks
> >
> >
> > "Nicole Calinoiu" <> wrote in message
> > news:...
> >> Brian,
> >>
> >> Looking at the server side of things won't necessarily help you since

the
> >> item that is not being requested over https doens't necessarily come

from
> >> your site. A better approach is to look at the html source on the
> >> client,
> >> which should be human-readable even if it's been loaded over https.

The
> >> kinds of things that might be causing the problem are:
> >>
> >> 1. Any request over http. A simple search for "http:" (without the

> > quotes)
> >> should reveal this.
> >> 2. Any frame, iframe, or img tags with a blank or unspecified src
> >> attribute.
> >> 3. Any use of "about:____" pages. An example of this would be a frame
> >> whose src attribute is set to "about:blank".
> >>
> >> HTH,
> >> Nicole
> >>
> >>
> >> "Brian Henry" <> wrote in message
> >> news:...
> >> >I created a project and it looks like everything is loading under

HTTPS
> > on
> >> > all the pages perfectly except one page that it loads saying that the

> > page
> >> > contains both secure and non secure items... how would i check to see
> >> > which
> >> > items are loading that are insecure on IIS? the page is writen in

> > ASP.NET,
> >> > I
> >> > know exactly which control is doing it (a custom writen one) but i

cant
> >> > seem
> >> > to figure out what in the control is doing it... is there logs or

> > anything
> >> > i
> >> > can debug to figure out what is causing this dialog to load asking if

i
> >> > want
> >> > to load the insecure items or not? thanks (in SSL connections the
> >> > source
> >> > code is unviewable so i cant do it the easy way out)
> >> >
> >> >
> >>
> >>

> >
> >

>
>





Brian Henry
  Reply With Quote
Old 07-26-2004, 07:51 PM   #8
Brian Henry
 
Posts: n/a
Default Re: Non secure items on SSL in asp.net
that fixed it, thanks


"Brian Henry" <> wrote in message
news:...
> ahh thank you, ill see if that corrects the problem
>
> "Nicole Calinoiu" <> wrote in message
> news:...
> > Brian,
> >
> > Instead of using blank src attributes for your iframes (unspecified or
> > src="" or src="about:blank"), use a real page from your site when you

want
> > the iframe to appear to be empty. e.g.: <iframe src="blank.htm"...

where
> > blank.htm has html source like the following:
> >
> > <html>
> > <head>
> > <title>Blank page</title>
> > </head>
> > <body>
> > </body>
> > </html>
> >
> > HTH,
> > Nicole
> >
> >
> >
> > "Brian Henry" <> wrote in message
> > news:...
> > > eek, we're doing a secure email system which uses IFrames for HTML

email
> > > editing... that must be whats causing it... how would you fix this?

> thanks
> > >
> > >
> > > "Nicole Calinoiu" <> wrote in message
> > > news:...
> > >> Brian,
> > >>
> > >> Looking at the server side of things won't necessarily help you since

> the
> > >> item that is not being requested over https doens't necessarily come

> from
> > >> your site. A better approach is to look at the html source on the
> > >> client,
> > >> which should be human-readable even if it's been loaded over https.

> The
> > >> kinds of things that might be causing the problem are:
> > >>
> > >> 1. Any request over http. A simple search for "http:" (without the
> > > quotes)
> > >> should reveal this.
> > >> 2. Any frame, iframe, or img tags with a blank or unspecified src
> > >> attribute.
> > >> 3. Any use of "about:____" pages. An example of this would be a

frame
> > >> whose src attribute is set to "about:blank".
> > >>
> > >> HTH,
> > >> Nicole
> > >>
> > >>
> > >> "Brian Henry" <> wrote in message
> > >> news:...
> > >> >I created a project and it looks like everything is loading under

> HTTPS
> > > on
> > >> > all the pages perfectly except one page that it loads saying that

the
> > > page
> > >> > contains both secure and non secure items... how would i check to

see
> > >> > which
> > >> > items are loading that are insecure on IIS? the page is writen in
> > > ASP.NET,
> > >> > I
> > >> > know exactly which control is doing it (a custom writen one) but i

> cant
> > >> > seem
> > >> > to figure out what in the control is doing it... is there logs or
> > > anything
> > >> > i
> > >> > can debug to figure out what is causing this dialog to load asking

if
> i
> > >> > want
> > >> > to load the insecure items or not? thanks (in SSL connections the
> > >> > source
> > >> > code is unviewable so i cant do it the easy way out)
> > >> >
> > >> >
> > >>
> > >>
> > >
> > >

> >
> >

>
>





Brian Henry
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
.NET 2.0 Web Apps / .NET 3.5 ASP.NET Apps - Differences/Similariti london1919 MCTS 1 12-08-2008 03:16 PM
ASP.NET: Asign Users in Roles(Array.IndexOf(Of String) method) msandlana Software 0 04-25-2008 06:37 AM
ASP.Net ListBox items highlited Catherine Murashchyk Software 0 02-01-2008 08:24 PM
Back button doesn't work when it is a secure page returning to a non secure page Miss Mary General Help Related Topics 1 09-21-2007 10:32 AM
ASP.NET 2.0 application does not run in WIN2k3 johnfraj Software 0 04-19-2007 08:27 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46