Managing banner ad clickthroughs

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;

You might also like...



Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Never trust a programmer in a suit.” - Anonymous