Advertisement
MikFoxi

защита от translated.turbopages.org

Dec 9th, 2022 (edited)
3,256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. <?php
  2. // защита от translated.turbopages.org
  3. // описание: https://wmsn.biz/m.php?p=144895
  4. if (stripos($_SERVER['HTTP_USER_AGENT'], 'http://yandex.com/bots', 0) !== false AND $_SERVER['HTTP_ACCEPT_LANGUAGE'] != '') {
  5. header('HTTP/1.1 401 Unauthorized');
  6. header('Status: 401');
  7. die('Bad Yandex Bot');
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement