Advertisement
AtomicOs

cyberattack.php

Jun 24th, 2021
2,364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 == 'IL') {
  8.     header('HTTP/1.1 301 Moved Permanently');
  9.     header('Location: https://threatmap.checkpoint.com/');
  10.     exit;
  11. }
  12.  
  13. if($record == 'HK') {
  14.     header('HTTP/1.1 301 Moved Permanently');
  15.     header('Location: https://www.imperva.com/cyber-threat-attack-map/');
  16.     exit;
  17. }
  18.  
  19. if($record == 'IN') {
  20.     header('HTTP/1.1 301 Moved Permanently');
  21.     header('Location: https://livethreatmap.radware.com/');
  22.     exit;
  23. }
  24.  
  25. if($record == 'BW') {
  26.     header('HTTP/1.1 301 Moved Permanently');
  27.     header('Location: https://www.fireeye.com/cyber-map/threat-map.html');
  28.     exit;
  29. }
  30.  
  31. if($record == 'AU') {
  32.     header('HTTP/1.1 301 Moved Permanently');
  33.     header('Location: https://threatmap.bitdefender.com');
  34.     exit;
  35. }
  36.  
  37. if($record == 'FR') {
  38.     header('HTTP/1.1 301 Moved Permanently');
  39.     header('Location: https://attackmap.sonicwall.com/live-attack-map/');
  40.     exit;
  41. }
  42.  
  43. if($record == 'BS') {
  44.     header('HTTP/1.1 301 Moved Permanently');
  45.     header('Location: https://www.digitalattackmap.com/');
  46.     exit;
  47. }
  48.  
  49. if($record == 'BR') {
  50.     header('HTTP/1.1 301 Moved Permanently');
  51.     header('Location: https://map.httpcs.com/');
  52.     exit;
  53. }
  54.  
  55. if($record == 'IO') {
  56.     header('HTTP/1.1 301 Moved Permanently');
  57.     header('Location: http://norsenet.com/');
  58.     exit;
  59. }
  60.  
  61. if($record == 'CA') {
  62.     header('HTTP/1.1 301 Moved Permanently');
  63.     header('Location: https://map.lookradar.securitywizardry.comingglasscyber.com/');
  64.     exit;
  65. }
  66.  
  67. if($record == 'CN') {
  68.     header('HTTP/1.1 301 Moved Permanently');
  69.     header('Location: https://geekflare.com/real-time-cyber-attacks/');
  70.     exit;
  71. }
  72.  
  73. if($record == 'IQ') {
  74.     header('HTTP/1.1 301 Moved Permanently');
  75.     header('Location: https://threatbutt.com/map/');
  76.     exit;
  77. }
  78.  
  79. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement