• Home
  • About Me
  • Contact
  • Things to do Before I Turn 30

the bofe blog

a twenty something IT professional with a few things to say

Feeds:
Posts
Comments

301/302 and HTTP Refer

November 10, 2006 by bofe

For (my) future reference…

If you’re using HTTP Status code 301 or 302 to redirect, some services do not retain the header for HTTP to tell you the referring URL.

Example:

/GET advertisement.net/site1.php?redirect=bofe.org

site1.php has this code:

There’s no way for bofe.org to know that 90% of the hits from advertisement.net actually came from advertisement.net. bofe.org’s logs look like users just typed it in.

The key, tell advertisement.net to redirect to a Unique URL.

/GET advertisement.net/site1.php?redirect=bofe.org/1234.php

where 1234.php redirects to the preferred destination.

Now you can effectively track the effectiveness of the advertisement that you were running with advertisement.net.

Posted in Personal | Tagged Geek, Personal | No Comments Yet

  • Pages

    • About Me
    • Contact
    • Things to do Before I Turn 30
  • Recent Comments

    • Some Betty on Why the hate?
    • stinkypie on Why the hate?
    • stinkypie on Why the hate?
    • JohnO on Why the hate?
    • Yee on a pancake on Why the hate?
    • adam on Why the hate?
    • JohnO on Why the hate?
    • deezil on Why the hate?
    • Yee on a pancake on Why the hate?
    • Dave on Why the hate?
  • Recently Popular

    • Guide to Backing up your Virtual Machines with VMware Consolidated Backup (VCB)
    • Sync Google Calendar and Facebook Events
    • How to Use Excel 2007 and Goal Seek to calculate what the minimum grade you need on a final exam
    • VMware Consolidated Backup: Explained
    • Firefox 3 Constantly Crashes -- advice?
    • Problem with Orphaned Users/Logins in SQL Server 2005 Migration
    • Facebook 12 Step Program
    • Sortables with Scriptaculous, PHP, and MySQL in 6 Easy Steps
    • modifying osCommerce - [part 2 - Functions, Cases, Blocks Oh My]
    • point(x,y) versus point(lat, long) or What I Learned Today
  • Archives

  • Tags

    4815162342 advertising ajax apple bofehax byebye css dba delicious links development drm facebook finance firefox Geek gis Google imadork linux mememe Meta metoo money murray Music mysql owensboro Personal personal finance personalfinance philosophy php rss scriptaculous sqlserver sqlserver2005 Tablet PC Uncategorized vmware web Weblogs Web Standards whitewhine work wtf
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.com

Blog at WordPress.com.

Theme: Mistylook by Sadish.