Quote Originally Posted by JamesVaporH View Post
Heres a small code i came up with:
Code: 
<?php
$realip= $_SERVER["REMOTE_ADDR"];
$proxyip= $_SERVER["HTTP_X_FORWARDED_FOR"];
if (empty($proxyip)) {
		echo "Change or remove this if you want to add a cookie based ad";
	}
	else {
		echo "Please do not cheat using the proxy $proxyip Use your real IP address $realip";
}
?>

Have you tested it yourself?