Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require 'IP2Location.php';
- $loc = new IP2Location('databases/IP-COUNTRY.BIN', IP2Location::FILE_IO);
- $record = $loc->lookup($_SERVER['REMOTE_ADDR'], IP2Location::ALL);
- if($record == 'MY') {
- header('HTTP/1.1 301 Moved Permanently');
- header('Location: https://www.fireeye.com/cyber-map/threat-map.html');
- exit;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement