Login Register
The stories and information posted here are artistic works of fiction and falsehood. Only a fool would take anything posted here as fact.


How to Find and Log IP Addresses filter_list
Author
Message
How to Find and Log IP Addresses #1
This will be a quick TUT on Finding and storing IP Addresses in case you want to trace or DDOS someones Connection

First make a fake website. Use Something like 000webhost. This will be the fake site that contains a .php file that takes and stores their ip address. In some cases this is also used for security i believe.

Once you made the website, you need to make the php file. You will need Notepad or anything that can write in c++, im using notepad ++

Heres the PHP file i have written, just copy and paste and make sure it is in c++ language.

<?php
$ip = $_SERVER['REMOTE_ADDR'];
$dt = date("l dS \of F Y h:iConfused A");
$file=fopen("ip_log.txt","a");
$data = $ip.' '.$dt."\n";
fwrite($file, $data);
fclose($file);
header( 'Location: https://google.com') ;
?>

It should look like this after saving (notepad ++)(you can change google to any other website to redirect them to)

[Image: phptut.jpg]



Next just make a txt document called ip_log
Now upload the files to your websites public folder

BAM, now anyone who visits ip is stored!


Now just go back to the ip_log.txt file to view the ips

Please Rate/Comment if this helped you a bit.
Please join my website, www.unknownhacking.net
I am really in need of some members and some HQ posters. Thanks to whoever registers.

Reply







Users browsing this thread: