W3C home > Mailing lists > Public > www-validator@w3.org > March 2005

Simple fix for "No Referer header found!"

From: <hal5@hiwaay.net>
Date: Tue, 01 Mar 2005 19:29:47 -0600 (CST)
To: www-validator@w3.org
Message-ID: <1109726987.4225170b7be90@webmail.hiwaay.net>

Thank you for your Validator page.  It allowed me to very
quickly convert my HTML code over to XHTML Transitional.

Like some others on the World Wide Web, I have had problems
with the "http://validator.w3.org/check?uri=referer" link
producing "No Referer header found!" error messages.  This
seems to be associated with firewalls and perhaps HTTPS too.

I have a SHORT solution involving simple inline JavaScript 
code that effectively replaces "referer" with the full URL.
If JavaScript is disabled, it just uses default "referer".
All of the not-so-effective other solutions I came across
on the Web were much more complicated, some needing PHP.

If you concur with this solution, I recommend that you update
your sample HTML code associated with the "Here is the HTML 
you should use to add this icon to your Web page:" statement.

================ CURRENT HTML CODE SAMPLE ========================
  <a href="http://validator.w3.org/check?uri=referer"><img
      alt="Valid XHTML 1.0!" height="31" width="88" /></a>

=============== SUGGESTED HTML CODE SAMPLE =======================
  <a href="http://validator.w3.org/check?uri=referer"
     onclick="this.href='http://validator.w3.org/check?uri=' + 
      alt="Valid XHTML 1.0!" height="31" width="88" /></a>

-- Ronnie Lajoie
Received on Wednesday, 2 March 2005 07:23:43 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:30:47 UTC