Forum Moderators: open
<script language="JavaScript" src="http://beaman-auto.com/ip2.php"></script>
<script type="text/javascript">
// IP Redirect
if (Ip=="63.243.66.174"){location.replace("http://www.example.com/security.html")
}
</script> <script language="JavaScript" src="http://scripts.hashemian.com/js/visitorIPHOST.js.php"></script>
<script type="text/javascript">
// IP Redirect
if (VIH_HostIP=="63.243.66.174"){location.replace("http://www.example.com/security.html")
}
</script> <?php
function getRealIpAddr() {
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
//check ip from share internet
$ip=$_SERVER['HTTP_CLIENT_IP'];
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
//to check ip is pass from proxy
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
$ip=$_SERVER['REMOTE_ADDR'];
}
return $ip;
}
?>
<?php
$ip = getRealIpAddr();
$VIH_HostIP = $ip;
$VIH_DisplayFormat = 'You are visiting from:<br>IP Address: ' . $ip . '<br>Host: ' . $VIH_HostIP . '"';
echo 'VIH_DisplayFormat = "' . $VIH_DisplayFormat . '"';
?>
<script type="text/javascript">
var Ip = "<?php echo $ip; ?>";
</script>
VIH_DisplayFormat = "You are visiting from:<br>IP Address: 0.0.0.0<br>Host: 0.0.0.0""<script language="javascript">
Ip = "0.0.0.0";
</script>
<?php
function getRealIpAddr() {
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
//check ip from share internet
$ip=$_SERVER['HTTP_CLIENT_IP'];
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
//to check ip is pass from proxy
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
$ip=$_SERVER['REMOTE_ADDR'];
}
return $ip;
}
?>
<?php
$ip = getRealIpAddr();
$VIH_HostIP = $ip;
$VIH_DisplayFormat = 'You are visiting from:<br>IP Address: ' . $ip . '<br>Host: ' . $VIH_HostIP . '"';
//echo 'VIH_DisplayFormat = "' . $VIH_DisplayFormat . '"';
?>
var Ip = "<?php echo $ip; ?>";