Advertisement
RintoMuhamad

IP TRACKER

Feb 17th, 2018
6,807
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.09 KB | None | 0 0
  1. <html>
  2.   <head>
  3.     <title>IP TRACKER</title>
  4.  
  5.    <style type='text/css'>
  6.    @import url('https://fonts.googleapis.com/css?family=Space+Mono');
  7.      html {
  8.        background: black;
  9.        color: grey;
  10.        font-family: 'Space Mono';
  11.          font-size: 12px;
  12.          width: 100%;
  13.      }
  14.      input[type=text] {
  15.        background: transparent;
  16.          color: grey;
  17.          border: 1px solid grey;
  18.          margin: 5px auto;
  19.          padding-left: 5px;
  20.          font-family: 'Space Mono';
  21.          font-size: 13px;
  22.      }
  23.      input[type=submit] {
  24.          background: transparent;
  25.          color: grey;
  26.          border: 1px solid grey;
  27.          margin: 5px auto;
  28.          padding-left: 5px;
  29.          font-family: 'Space Mono';
  30.          font-size: 13px;
  31.          cursor:pointer;
  32.      }
  33.     </style>
  34.   </head>
  35. <body>
  36. <?php
  37. // Coded By Con7ext
  38. //
  39. error_reporting(0);
  40. $kntl = $_POST['subm'];
  41. $ip = $_POST['aipi'];
  42. if($kntl) {
  43.   $getURL = json_decode(file_get_contents("https://ipapi.co/".$ip."/json"));
  44.   echo "<br> IP ADDRESS : ".$getURL->ip;
  45.   echo "<br> PROVIDER : ".$getURL->org." <font color='red'>|</font> ASN : ".$getURL->asn;
  46.   echo "<br> COUNTRY : ".$getURL->country_name." <font color='red'>|</font> COUNTRY CODE : ".$getURL->country;
  47.   echo "<br> REGION : ".$getURL->region." <font color='red'>|</font> REGION CODE : ".$getURL->region_code;
  48.   echo "<br> CITY : ".$getURL->city;
  49.     echo "<br> LANGUAGES : ".$getURL->languages;
  50.     echo "<br> CURRENCY : ".$getURL->currency;
  51.     echo "<br> TIME ZONE : ".$getURL->timezone;
  52.     echo "<br> CALLING CODE : ".$getURL->country_calling_code;
  53.   echo "<br> LATITUDE : ".$getURL->latitude;
  54.   echo "<br> LONGITUDE : ".$getURL->longitude;
  55.   echo "<br> VIEW ON GOOGLE MAPS : <br> <iframe width='1100' height='400' src='https://maps.google.com/maps?q=".$getURL->latitude.",".$getURL->longitude."&hl=ID;z=14&amp;output=embed'></iframe>";
  56. } else {
  57.   echo "
  58. <form method='POST' action=''>
  59. <input type='text' name='aipi' value='".$_SERVER['REMOTE_ADDR']."'>
  60. <input type='submit' name='subm' value='Submit'>";
  61. }
  62.   echo "<br><center>Coded By Con7ext</center>"
  63. ?>
  64.   </body>
  65. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement