includes/common.php
changeset 271 f088805540ae
parent 229 97ae8e9d5e29
parent 270 5bcdee999015
child 279 8acd77a6c19d
--- a/includes/common.php	Sat Nov 17 22:25:37 2007 -0500
+++ b/includes/common.php	Sun Nov 18 20:37:08 2007 -0500
@@ -273,6 +273,12 @@
     @call_user_func('page_'.$p[1].'_'.$p[0].'_preloader');
   }
   
+  // One quick security check...
+  if ( !is_valid_ip($_SERVER['REMOTE_ADDR']) )
+  {
+    die('SECURITY: spoofed IP address');
+  }
+  
   $session->start();
   $paths->init();