Testing for Referral Blocking

mystery

Regular Member
Joined
Apr 10, 2007
Messages
335
Reaction score
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?
 
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;
?>
 
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;
?>

Ok thanks.. tested it and it's working fine.
 
Back
Top