Click to See Complete Forum and Search --> : W3C Validator & Session Counter


Iridium52
07-29-2005, 11:18 PM
I have the W3C validator button on every page of my site to show users that my site is valid HTML (hopefully). When the button is clicked for validation it creates a hit on my session counter (created with ASP). What I'd like to do is prevent the validator from creating a hit.

I tried something on the lines of this:

IF Request.ServerVariables ("remote_host")<>"w3c.org" THEN
rs("Counter") = rs("Counter") + 1
rs.Update
Session ("Counter")=True
END IF

I used this technique the successfully hide all my sessions from my computer at home but can't quite get it right to hide the validator's.

Any suggestions?

buntine
07-30-2005, 12:29 AM
The REMOTE_HOST member will return the IP address of the calling server/client. Find out the IP address or w3.org (a whois search or ping should suffice).

Regards.