vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Simple IP Logging and Display (https://vborg.vbsupport.ru/showthread.php?t=185874)

carmichael1973 07-19-2008 10:00 PM

Simple IP Logging and Display
 
First, this is public code that can be found anywhere on the net. Do with it as you want! If it has already been posted somewhere, forgive the duplication.

I use this code to add a little extra protection and logging awareness to my board users. Maybe others will find it useful

*This simple ip address logging script will display your visitor's ip address and then record it into the text file iplog.txt

This logger is designed to only log a single? important webpage on your website such as the log-in, index or submit page.

To install paste the logger's script into your webpage's html code exactly where you wish the visitor's ip address to display.

Upon the webpage's first pageload the text file iplog.txt will be created within the directory containing the logged webpage.

?Multiple webpages may be logged if each webpage's logger script is given an unique log file name e.g. iplog1.txt, iplog2.txt, etc.

CAUTION: Log files can grow excessive in size slowing your server so please download then delete large log files from the server.


The code is located in the attached file along with simple instructions. It's very easy to use and is NOT supported.


All times are GMT. The time now is 02:18 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01048 seconds
  • Memory Usage 1,708KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete