PhpSnip.com

User Stats

static ip page

Submit to this page from a form with a hidden field. Checks that field and your ip address. Good if its static.

Info

 Download  View Source (print view)
 Rating : 4.7  Views : 665

Source Code ( 13 lines )

<?php
$ip = GetHostByName($REMOTE_ADDR);
if (($ip!="24.43.234.25")||($cool!="some^&%$^%thing")) {
   echo "<script language='JavaScript'><!--n";
   echo " site='http://www.disney.com'n";
   echo "window.location.replace(site);n";
   echo "//--></script>n";
}
else{
   echo date("l, F d, Y",time()); //ex.Friday, September 21, 2001
   echo "<br><br><strong>Welcome YourName</strong><br>n"; 
}
?>

Search

Subscribe

  Rss Feeds

Sponsors

Advertise