Obtaining Someones IP via Website
Step One: Open a random php file.
Step Two: Copy and paste this into it.
PHP Code:
Code:
<?php
$ip = getenv('REMOTE_ADDR');
if($ip != "[Your ip Here, This function Blocks your ip from being logged everytime you goto your site.")
{
$fp = fopen('logs.htm', 'a');
fwrite($fp, 'IP: ' .$ip. '<br>-----------------------------------------------<br>')
fclose($fp);
}
?>
Step Three: Upload to your website.
Step Four: Make people go to your site.
You can do this to just obtain IP addresses, or you can put them into your own website, but you have to make your "Index" a .php file in your CPanel.
Step One: Open a random php file.
Step Two: Copy and paste this into it.
PHP Code:
Code:
<?php
$ip = getenv('REMOTE_ADDR');
if($ip != "[Your ip Here, This function Blocks your ip from being logged everytime you goto your site.")
{
$fp = fopen('logs.htm', 'a');
fwrite($fp, 'IP: ' .$ip. '<br>-----------------------------------------------<br>')
fclose($fp);
}
?>
Step Three: Upload to your website.
Step Four: Make people go to your site.
You can do this to just obtain IP addresses, or you can put them into your own website, but you have to make your "Index" a .php file in your CPanel.
{ 0 comments... Skip to Comments }
Please comment here