1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Testing for Referral Blocking

Discussion in 'CPA' started by mystery, Dec 22, 2008.

  1. mystery

    mystery Regular Member

    Joined:
    Apr 10, 2007
    Messages:
    335
    Likes Received:
    24
    I've set up my links and pages so that the referral is blocked. I'm using statcounter code to verify this. Apparently the double meta refresh is working, and it shows no referral but only hits.

    I however want to test it one more time, using something else other than statcounter. How do you log referrals?
     
  2. java

    java Guest

    Create a .php landing page and put this code in it.

    Code:
    <?php
    	// This Page Displays the Users IP, User Agent, and Referrer
    	$html  = "<html><head><title>Referral Check</title></head><body>";
    	$html .= "<br />Client IP: " . $_SERVER['REMOTE_ADDR'];
    	$html .= "<br />User Agent: " . $_SERVER['HTTP_USER_AGENT'];
    	$html .= "<br />Referrer: " . $_SERVER['HTTP_REFERER'];	
    	$html .= "<br />Query: " . $_SERVER['QUERY_STRING'];	
    	$html .= "</body></html>";
    
    	echo $html;
    ?>
     
    • Thanks Thanks x 3
  3. mystery

    mystery Regular Member

    Joined:
    Apr 10, 2007
    Messages:
    335
    Likes Received:
    24
    Ok thanks.. tested it and it's working fine.