RE: [ TuT ] Get someone's IP [ Forum ] 07-09-2013, 07:39 PM
#11
That is a really good tutorial but why would you let them signup on a forum, while you can just send them to a page containing the following code:
and just say Oops when they ask what was that.
Code:
<html>
<?php
$file = "sinisterly.txt";
$f=fopen($file, 'a');
fwrite($f,$_SERVER['REMOTE_ADDR']."\n");
fclose($f);
?>
<p>File not found</p>
</body>
</html>and just say Oops when they ask what was that.


![[Image: znALY5V.jpg]](https://i.imgur.com/znALY5V.jpg)
![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)