Advertisement
AtomicOs

index.php

Jun 24th, 2021
415
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. <?php
  2. require 'IP2Location.php';
  3.  
  4. $loc = new IP2Location('databases/IP-COUNTRY.BIN', IP2Location::FILE_IO);
  5. $record = $loc->lookup($_SERVER['REMOTE_ADDR'], IP2Location::ALL);
  6.  
  7. if($record == 'MY') {
  8.     header('HTTP/1.1 301 Moved Permanently');
  9.     header('Location: https://www.fireeye.com/cyber-map/threat-map.html');
  10.     exit;
  11. }
  12.  
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement