Where is my referrers??

Discussion in 'PHP' started by davidlynch, Apr 16, 2008.

  1. #1
    Hi,

    Firstly, I'm new to Apache + php world

    Having said so, let me show you my problem:

    I'm trying to get the REFERRER WEBSITES that visits my site.
    Most of my files are written in plain html, so I'm unable to code server side instructions.

    So I put this simple javascript code:

    the getreferrer.php file just get the origin url and save it to a textfile:

    The result is that EVERY referrer url entry is replaced with the full URL of the page that uses de javascript code,

    In english - if I visit my page called "http://site/file1.htm" from a search result on search engine "http://searchengine", my referrer recorded is "http://site/file1.htm" instead of "http://searchengine".

    When I use PHP this problem doesn't arise, but I'm unable to use any other format than "html" file

    Any help will be highly appreciatted

    David
     
    davidlynch, Apr 16, 2008 IP