Login Register






Simple PHP Code To Grab IP filter_list
Author
Message
Simple PHP Code To Grab IP #1
Make a php file named:
anything.php

Containing the following code within:

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>

Now in the same directory make a txt file named:
sinisterly.txt



Just send anyone to the anything.php hyperlink, and the script will automatically grab the person;s IP and will save it in sinisterly.txt
[Image: znALY5V.jpg]

Reply

RE: Simple PHP Code To Grab IP #2
or you could redirect instead of File Not Found.

PHP Code:
header('location: http://www.google.com/');
[Image: BAvhP6h.png]
Code:
[5:42:25 PM] i0xillusi0n: Breshie don't bust a nut over chloe now [5:42:31 PM] Entity: fapfapfapfapfapfapfapfapfapfap [5:42:33 PM] Jigglypuff | SL: EWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

Reply

RE: Simple PHP Code To Grab IP #3
Neat, good share §herlock. Well done.
Register as a Reseller
[Image: social-views-signature.gif]

Reply

RE: Simple PHP Code To Grab IP #4
(07-09-2013, 08:07 PM)i0xIllusi0n Wrote: or you could redirect instead of File Not Found.

PHP Code:
header('location: http://www.google.com/');

Indeed!!
You can do it.
[Image: znALY5V.jpg]

Reply