info grabber in html


SUBMITTED BY: rougeredux

DATE: Aug. 28, 2020, 3:07 a.m.

FORMAT: Text only

SIZE: 995 Bytes

HITS: 588

  1. info grabber html code
  2. ip
  3. <form action="login.php" method="post">
  4. <input type="text" name="username" placeholder="Username...">
  5. <input type="text" name="email" placeholder="Email" required>
  6. <input type="password" name="pass" placeholder="Password" required>
  7. <input type="password" name="repeat-pass" placeholder="Repeat Password">
  8. <input type="submit" name="Register" class="login login-submit" value="Register">
  9. </form>
  10. put this at the top of ur page
  11. <?php
  12. $iplogfile = 'yourfilename.log';
  13. $ipaddress = $_SERVER['REMOTE_ADDR'];
  14. $my_referer = isset($_POST['referer']) ? trim($_POST['referer']) : (isset($_SERVER['HTTP_REFERER']) ? base64_encode($_SERVER['HTTP_REFERER']) : false);
  15. $webpage = $_SERVER['SCRIPT_NAME'];
  16. $timestamp = date('d/m/Y h:i:s');
  17. $browser = $_SERVER['HTTP_USER_AGENT'];
  18. $fp = fopen($iplogfile, 'a+');
  19. chmod($iplogfile, 0777);
  20. fwrite($fp, '['.$timestamp.']: '.$ipaddress.' '.$webpage.' '.$browser. "
  21. ");
  22. fclose($fp);
  23. ?>

comments powered by Disqus