Public paste
Some little ip allow script
By: Arie | Date: Aug 30 2006 22:53 | Format: PHP | Expires: never | Size: 239 B | Hits: 1431

  1. <?php
  2.     $allowed = Array(
  3.         '127.0.0.1' => true,
  4.         '192.168.0.2' => true,
  5.     );
  6.     if (!$allowed[$_SERVER['REMOTE_ADDR']]) {
  7.         print 'Your IP adres is not allowed to view this page.';
  8.         exit();
  9.     }
  10. ?>
Latest pastes
2 days ago
2 days ago
4 days ago
5 days ago
5 days ago