Just so you are aware the following snippets of code as of today will NOT detect ebay. Hopefuly it gets fixed but if you use this to stop calls to your affiliate ID's from ebay you may want to figure something else out.

getenv("HTTP_REFERER");
getenv("HTTP_REFFERER");


I have tested this on several diffrent servers from several diffrent companies and I get the same results. nada.