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 == 'IL') {
- header('HTTP/1.1 301 Moved Permanently');
- header('Location: https://threatmap.checkpoint.com/');
- exit;
- }
- if($record == 'HK') {
- header('HTTP/1.1 301 Moved Permanently');
- header('Location: https://www.imperva.com/cyber-threat-attack-map/');
- exit;
- }
- if($record == 'IN') {
- header('HTTP/1.1 301 Moved Permanently');
- header('Location: https://livethreatmap.radware.com/');
- exit;
- }
- if($record == 'BW') {
- header('HTTP/1.1 301 Moved Permanently');
- header('Location: https://www.fireeye.com/cyber-map/threat-map.html');
- exit;
- }
- if($record == 'AU') {
- header('HTTP/1.1 301 Moved Permanently');
- header('Location: https://threatmap.bitdefender.com');
- exit;
- }
- if($record == 'FR') {
- header('HTTP/1.1 301 Moved Permanently');
- header('Location: https://attackmap.sonicwall.com/live-attack-map/');
- exit;
- }
- if($record == 'BS') {
- header('HTTP/1.1 301 Moved Permanently');
- header('Location: https://www.digitalattackmap.com/');
- exit;
- }
- if($record == 'BR') {
- header('HTTP/1.1 301 Moved Permanently');
- header('Location: https://map.httpcs.com/');
- exit;
- }
- if($record == 'IO') {
- header('HTTP/1.1 301 Moved Permanently');
- header('Location: http://norsenet.com/');
- exit;
- }
- if($record == 'CA') {
- header('HTTP/1.1 301 Moved Permanently');
- header('Location: https://map.lookradar.securitywizardry.comingglasscyber.com/');
- exit;
- }
- if($record == 'CN') {
- header('HTTP/1.1 301 Moved Permanently');
- header('Location: https://geekflare.com/real-time-cyber-attacks/');
- exit;
- }
- if($record == 'IQ') {
- header('HTTP/1.1 301 Moved Permanently');
- header('Location: https://threatbutt.com/map/');
- exit;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement