My web page is giving security errors
Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: My web page is giving security errors

  1. #1
    Senior Member codenamevirus's Avatar
    Join Date
    Jun 2005
    Location
    Faridabad, Haryana, India
    Posts
    298

    Exclamation My web page is giving security errors

    Hi All

    I am coding a web application, today I made some changes in the CSS classes of the anchor tag and suddenly my page started showing the following message:

    "This page contains both secure and non secure items.
    Do you want to display the nonsecure items?"

    Now first tell me how to get rid of this problem?
    and then let me know, why is this error coming at all?

    Please its urgent. Thanks
    CodeNameVirus

  2. #2
    Just a Virtualized Geek MrLinus's Avatar
    Join Date
    Sep 2001
    Location
    Redondo Beach, CA
    Posts
    7,324
    Uh.. without knowing what you coded, where and how you coded it, it's kinda hard to tell you how to get rid of it or why it happened. Ya know?
    Goodbye, Mittens (1992-2008). My pillow will be cold without your purring beside my head
    Extra! Extra! Get your FREE copy of Insight Newsletter||MsMittens' HomePage

  3. #3
    Senior Member codenamevirus's Avatar
    Join Date
    Jun 2005
    Location
    Faridabad, Haryana, India
    Posts
    298
    Hi

    Here are the CSS classes I added:

    a.nameLinks
    {
    color: #787878;
    font-size: 11px;
    text-decoration: none;
    font-weight:500;
    font-family: Trebuchet MS;
    }

    a.nameLinks:visited
    {
    color: #787878;
    text-decoration: none;
    font-family: Trebuchet MS;
    font-size: 11px;
    font-weight:500;
    }

    a.nameLinks:hover
    {
    color: #787878;
    text-decoration: none;
    font-family: Trebuchet MS;
    font-size: 11px;
    font-weight: bold;
    }

    a.nameLinksVisited
    {
    color: #787878;
    text-decoration: none;
    font-family: Trebuchet MS;
    font-size: 11px;
    font-weight: bold;
    }

    and then I referred to the classes in the following code:

    strHTML += "<tr><td align=\"center\"><a class=\"customLinks\" href=http://www.lifereg.com/Default.aspx?url=Details_EN&language=" + language + ">" + sColumnData + "</a>";

    So, does it help?
    CodeNameVirus

  4. #4
    Gonzo District BOFH westin's Avatar
    Join Date
    Jan 2006
    Location
    SW MO
    Posts
    1,188
    I may be way off with my line of thinking here, but are you using https on your page?
    \"Those of us that had been up all night were in no mood for coffee and donuts, we wanted strong drink.\"

    -HST

  5. #5
    Senior Member codenamevirus's Avatar
    Join Date
    Jun 2005
    Location
    Faridabad, Haryana, India
    Posts
    298
    yes, if the page opens on a client/public machine, the website opens as HTTPS but on the server machines it opens as HTTP only.

    but, remember, it is after i added the above classes the error started coming, before including the above mentioned CSS classes.
    CodeNameVirus

  6. #6
    Just a Virtualized Geek MrLinus's Avatar
    Join Date
    Sep 2001
    Location
    Redondo Beach, CA
    Posts
    7,324
    Code: do you only get this error in IE or do you also see it in other browsers?
    Goodbye, Mittens (1992-2008). My pillow will be cold without your purring beside my head
    Extra! Extra! Get your FREE copy of Insight Newsletter||MsMittens' HomePage

  7. #7
    Senior Member codenamevirus's Avatar
    Join Date
    Jun 2005
    Location
    Faridabad, Haryana, India
    Posts
    298
    I saw it IE, but not in firefox (but i think, i may have disabled something, maybe)
    CodeNameVirus

  8. #8
    Gonzo District BOFH westin's Avatar
    Join Date
    Jan 2006
    Location
    SW MO
    Posts
    1,188
    Could it be when it calls this line:

    Code:
    strHTML += "<tr><td align=\"center\"><a class=\"customLinks\" href=http://www.lifereg.com/Default.aspx?url=Details_EN&language=" + language + ">" + sColumnData + "</a>";
    that it is seeing this as a nonsecure item, and reporting as such? I don't have too much experience with this, I am just guessing here...
    \"Those of us that had been up all night were in no mood for coffee and donuts, we wanted strong drink.\"

    -HST

  9. #9
    Senior Member codenamevirus's Avatar
    Join Date
    Jun 2005
    Location
    Faridabad, Haryana, India
    Posts
    298
    I dont think so, this line was before also, i think its related to some change that I did related to anchor tags or the CSS classes associated to it, the problem is this error doesnt come when i run it on my local machine, it is only when I host the site online, this error message is popping up, and that also in IE only.

    Its coming in all the client machines and server machines that I have. Can some just help me in getting rid of it, i can post the relevant pieces of code, if u want. There's nothin more as such in detail than the code i already provided before.
    CodeNameVirus

  10. #10
    Senior Member IKnowNot's Avatar
    Join Date
    Jan 2003
    Posts
    792
    Did you try running through something like W3C CSS Validation Service ?

    My brain is fried right now, but what is
    a.nameLinksVisited ?

    Is it different in some way then
    a.nameLinks:visited

    ( Other then the missing colon )
    " And maddest of all, to see life as it is and not as it should be" --Miguel Cervantes

Similar Threads

  1. A guide to proactive network security
    By SDK in forum Miscellaneous Security Discussions
    Replies: 0
    Last Post: November 30th, 2004, 11:45 PM
  2. little flood problem...
    By thirstybrain in forum Programming Security
    Replies: 4
    Last Post: May 22nd, 2003, 07:27 AM
  3. NEWS: This weeks security news. 10/2/02
    By xmaddness in forum Miscellaneous Security Discussions
    Replies: 1
    Last Post: October 2nd, 2002, 09:32 PM
  4. NEWS: This weeks security news.
    By xmaddness in forum Miscellaneous Security Discussions
    Replies: 7
    Last Post: September 12th, 2002, 10:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 Security News

     Patches

       Security Trends

         How-To

           Buying Guides