Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6349903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:42:29+00:00 2026-05-24T21:42:29+00:00

This may be a dumb newbie question, so appologies for that. My website is

  • 0

This may be a dumb newbie question, so appologies for that.

My website is using a SSL certificate. I also include the W3 validator link in each of my webpages as follows:

<a href="http://validator.w3.org/check?uri=referer"><img src="valid-xhtml1.png" alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a>

(Note: copied over the w3 validator image so SSL wouldn’t complain about unsecure resources).

When I do this, and click on the image to validate the page, I get this message from the validator:

enter image description here

The error mentions requesting the validator unsecurely. So I tried changing the href of the <a> tag to use https for the validator, but then the page simply doesn’t load (I guess because the validator doesn’t use SSL).

Does anyone know a way around this? I am guessing there is not a way to use the code as is, but maybe there is a way to update uri=referer to be uri=https://mysite.com/...? Is there a way to dynamically grab the URL of the current page?

Also, just for further reference, does SSL simply prevent the referer request header from being accessed?

Oh, and I know I can just go to my website using http instead of https, and the validator works. But I’d rather get it configured to work with https too.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T21:42:30+00:00Added an answer on May 24, 2026 at 9:42 pm

    Ok, so it’s not looking like there is a way to do this with just HTML. So instead, I decided to use JavaScript to handle the issue.

    I removed the <a> tag from around the W3 logo and added an onclick JavaScript function validatePage(). So here is basically a template for an XHTML Strict page that still allows you to include the validation icon.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
            <title>Title of document</title>
            <script type="text/javascript">
                function validatePage() {
                    var validatorUrl = "http://validator.w3.org/check?uri=http" + (document.URL).substring(5);
                    window.open(validatorUrl);
                }
            </script>
        </head>
        <body>
            <h1>Test Template Page</h1>
            <p><img src="valid-xhtml1.png" alt="Valid XHTML 1.0 Strict" height="31" width="88" onclick="validatePage()" /></p>
        </body>
    </html>
    

    Notice how the validatorUrl variable trims off the “https” from the URL and instead uses “http”. So I just circumvented using the HTTP referer header.

    Hope this helps someone else.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm an absolute newbie to C so this may be a dumb question, warning!
This may be a dumb question, but what kind of protocol a website such
This may sound like a dumb question, but is one APNS certificate good for
This may be a dumb question, and based on the fact that googling has
This may be a dumb question, but that fuzzy blue color that you get
This may be a dumb question, I have tried googling but I am probably
I know this may be a dumb question, but my background is more in
This may be a really dumb question but I'm just starting to learn the
This may well be a dumb question and if this has already been answered
im really new to linq-to-SQL so this may sound like a really dumb question,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.