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.


IP Recorder Code, site filter_list
Author
Message
IP Recorder Code, site #1
Code:
<?php $ipaddres = $_SERVER["REMOTE_ADDR"]; $scannee= $_SERVER["HTTP_USER_AGENT"]; $ip= fopen("ip.txt", "a"); fwrite($ip,"name Chrome : $scanner<br> İp : $ipaddres"); ?>
Users who visited your site.
Records the ip address. Put it in the index.php file.

It saves at www.site.com/ip.txt
(This post was last modified: 01-24-2020, 12:00 AM by SCARIO.)
we obey a god that does not exist.
SCARIO

Reply

RE: IP Recorder Code, site #2
The majority of my sites are configured to save visitor's IP addresses, but those that don't, I'll look Into this script.

Thanks.
[Image: AD83g1A.png]

Reply

RE: IP Recorder Code, site #3
Thanks very helpful. I normally use Statcounter as it show all type of information with a hidden JavaScript snip.

Reply

RE: IP Recorder Code, site #4
(01-24-2020, 02:52 AM)mothered Wrote: The majority of my sites are configured to save visitor's IP addresses, but those that don't, I'll look Into this script.

Thanks.

(01-24-2020, 03:34 PM)hacxx Wrote: Thanks very helpful. I normally use Statcounter as it show all type of information with a hidden JavaScript snip.

This code. It sees your work.
Code:
<?php $protocol = $_SERVER['SERVER_PROTOCOL']; $ip = $_SERVER['REMOTE_ADDR']; $port = $_SERVER['REMOTE_PORT']; $agent = $_SERVER['HTTP_USER_AGENT']; $ref = $_SERVER['HTTP_REFERER']; $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); $fh = fopen('ip.txt', 'a'); fwrite($fh, 'IP Address: '."".$ip ."\n"); fwrite($fh, 'Hostname: '."".$hostname ."\n"); fwrite($fh, 'Port Number: '."".$port ."\n"); fwrite($fh, 'User Agent: '."".$agent ."\n"); fwrite($fh, 'HTTP Referer: '."".$ref ."\n\n"); fclose($fh); ?>
we obey a god that does not exist.
SCARIO

[+] 1 user Likes SCARIO's post
Reply

RE: IP Recorder Code, site #5
(01-25-2020, 09:32 AM)SCARIO Wrote:
(01-24-2020, 02:52 AM)mothered Wrote: The majority of my sites are configured to save visitor's IP addresses, but those that don't, I'll look Into this script.

Thanks.

(01-24-2020, 03:34 PM)hacxx Wrote: Thanks very helpful. I normally use Statcounter as it show all type of information with a hidden JavaScript snip.

This code. It sees your work.
Code:
<?php $protocol = $_SERVER['SERVER_PROTOCOL']; $ip = $_SERVER['REMOTE_ADDR']; $port = $_SERVER['REMOTE_PORT']; $agent = $_SERVER['HTTP_USER_AGENT']; $ref = $_SERVER['HTTP_REFERER']; $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); $fh = fopen('ip.txt', 'a'); fwrite($fh, 'IP Address: '."".$ip ."\n"); fwrite($fh, 'Hostname: '."".$hostname ."\n"); fwrite($fh, 'Port Number: '."".$port ."\n"); fwrite($fh, 'User Agent: '."".$agent ."\n"); fwrite($fh, 'HTTP Referer: '."".$ref ."\n\n"); fclose($fh); ?>

Good use of functions, and the variables have been named accordingly.

Usually when I come across scripts, some editing Is required. Not In this case.
Thanks again.
[Image: AD83g1A.png]

Reply

RE: IP Recorder Code, site #6
I know. That's the main reason why i just code in client side.

Reply

RE: IP Recorder Code, site #7
Whahahhaha. Wtf was that video man.

Reply