Wife/Girlfriend/Sister?
Pepper Spray &
Stun Gun Specials!
KEEP THEM SAFE.
 CoverYourASP --> Managing banner ad clickthroughs --> Part 5

Free membership

Join in the fun! Sign in
Member Services

Site navigation
Download the entire site!
Search my articles
Free Magazines
Browse the directory

Send me feedback
Buy my boxer shorts

Recommend this page
Printer-friendly page

Resources I recommend
Link to my site
Advertising slashed!
About your privacy
Legal stuff
Site statistics
15 active users
41 visitors today
157 pages today
how is this done?
Tools I use

CoverYourASP
Copyright © 1999-2012 James Shaw.
All rights reserved.

ASP.NET Blog
RSS submissions
E-commerce

Now open source with SourceForge!

Ignoring HTTP commands

Another problem that frequently skews the statistics is HTTP HEAD requests. Obviously these aren't done by humans, so we wanted to ignore them too, and only count the GET requests that all browsers make to ask the server for data.

The code below shows how this was done:

// ignore any HTTP HEAD requests - they're not from a browser!
if ( 'GET' != Request.ServerVariables ( 'REQUEST_METHOD' ) )
{
   // not a human, so ignore them
   bIgnoreClick = true;
}

Featured sponsor
My favorite resources

Tiki Statues - Tiki Masks - Tiki Totems



I share my content

Supporting ASPRSS

Do you need a quick and easy way to link to my articles? All the information you need is published with ASPRSS...


Qualify for Free Trade Magazines

Free subscriptions to industry leading publications for those who qualify!