0 Replies Latest reply on Nov 7, 2007 2:50 PM by RookOrn

    referer log

      Hi guys,

      I'm currently creating a log system that is included on each page.

      Within this i have an http_referer function listing the referal page. However because the script is on every page the referels just turn out to be from other pages of the same website.

      What i want to do is to call everything from the same site "internal" but still allow http_referer to work from external websites.

      logger e.g.
      If referer is http://currentsite.cfm > insert into database 'Internal'
      If referer is http//example.com/link.cfm > insert

      I hope that was clear enough.

      I'm pretty sure i need to use something like
      <CFIF http_referer (contains) "currentsite" INSERT "internal" into database.....

      Any ideas?