Skip to content

Logs the IP of the visitor who runs the script to a .txt file. Useful when you don't have a dynamic DNS and need to access your home network / Raspberry Pi.

Notifications You must be signed in to change notification settings

cmar0ck/php-ip-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

php-ip-logger

Logs the IP of the visitor who runs the script to a .txt file. Useful when you don't have a dynamic DNS and need to access your home network / Raspberry Pi.

Example Usage:

crontab -e

Update IP every hour (= 'at minute 0')

0 * * * * curl http://urlofyourhost.com/ip.php

The logged ip will then be written to 'ip.txt' (located in the same folder as ip.php)

About

Logs the IP of the visitor who runs the script to a .txt file. Useful when you don't have a dynamic DNS and need to access your home network / Raspberry Pi.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages