phranque - 8:01 am on Aug 3, 2012 (gmt 0)
welcome to WebmasterWorld, dtaylor7!
%HTTP_REFERER should hold the value of the HTTP Referer: header sent by the user agent.
i'm not sure how you could see a Referer: header for a direct request.
do you have access to your server configuration file?
(typically named something like httpd.conf)