Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Delete IPs within a certain interval Details »»
Delete IPs within a certain interval
Version: 1.03, by Patria Patria is offline
Developer Last Online: Jan 2010 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.5 Rating:
Released: 02-01-2007 Last Update: 03-15-2008 Installs: 22
Additional Files  
No support by the author.

Description:

The script deletes the IP adresses within the following tables: adminlog, moderatorlog, post, threadrate, user. It doesnt remove the banned IPs (vBulletin Options, User Banning Options, Banned IP Addresses).

Installation:

1) Upload deleteip.php to /includes/cron

2) Login into your AdminCP

3) Go to Scheduled Tasks, Add New Scheduled Task

Varname: deleteip
Title: Delete IPs
Description: Delete IPs within a certain interval.
Log Phrase: Delete IPs

Set Interval.

Filename: ./includes/cron/deleteip.php
Product: vBulletin

Update Instructions:

Replace the file deleteip.php.

History:

Version 1.01: Cron Logging - log_cron_action() added.
Version 1.02: Speed Improvement - Significantly faster without the conditionals.
Version 1.03: Added conditionals again to decrease the database load.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-03-2007, 12:40 AM
cygy2k cygy2k is offline
 
Join Date: May 2006
Location: Iowa
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you explain the benefit of this? I'm sure there must be one but I'm unaware of it.
Reply With Quote
  #3  
Old 02-03-2007, 03:48 AM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think it's just to reduce the size of your database...
Reply With Quote
  #4  
Old 02-03-2007, 09:02 AM
Patria Patria is offline
 
Join Date: Apr 2005
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cygy2k View Post
Can you explain the benefit of this?
You support your members to protect their privacy.

If you turn off the IP Address Log within vBulletin - AdminCP, Message Posting and Editing Options, Log IP Addresses, vBulletin still logs the IP Addresses in several other tables except the post table and the IP Addresses are still held in your database from the time before you put down the switch.

Why would someone turn off the IP address logging?

For security and privacy reasons.

Three Scenarios

Copyright Violation: A member posted a direct link to Disneys current movie and Disney asks you for the IP address of the user? You could say sorry, we do not log IP addresses to protect the privacy of our members.

Free Speech: A member posted something your goverment doesnt like and they ask you for the IP address of the user? You could say sorry, we do not log IP addresses to protect the privacy of our members.

Data Theft: Someone hacked your server and does a mysqldump, with the IP addresses he could easily run all IP addresses against a Geolocation database and sell it to markting companies or use it to uncover your members together with the email addresses.

You simply dont have what they try to get. You should also delete your webserver logs within a certain interval and instruct your members to use suitable email providers. Or use secure proxies in general which usual user doesnt do.
Reply With Quote
  #5  
Old 02-03-2007, 06:28 PM
SCRIPT3R SCRIPT3R is offline
 
Join Date: Jan 2005
Posts: 1,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent... i've always done this manually.
Reply With Quote
  #6  
Old 02-04-2007, 03:40 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for sharing the benefits, it now makes more sense, Just one question, If I have a member who I wnat to ban by IP, how will I know what his IP is?
Reply With Quote
  #7  
Old 02-04-2007, 11:03 AM
Patria Patria is offline
 
Join Date: Apr 2005
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hornstar1337 View Post
Thanks for sharing the benefits, it now makes more sense, Just one question, If I have a member who I wnat to ban by IP, how will I know what his IP is?
You still see the IP address via Who's Online (online.php) and you could control the deletion interval of course.
Reply With Quote
  #8  
Old 02-22-2007, 09:58 PM
JKelleyus JKelleyus is offline
 
Join Date: Oct 2006
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm curious about this....

I run a somewhat controversial local politics forum where people have become upset and threatened to sue members for their posts.

What effect does deleting the IP's have on vB as a whole? Will it mess with the polling (if enabled for guests)? If I process server logs for statistical data, and then run the cron job, will my stats still be valid (I try and maintain a 7 day stat that includes geo-location by IP)?

Thanks for any answers...

Jake
Reply With Quote
  #9  
Old 02-22-2007, 11:22 PM
Patria Patria is offline
 
Join Date: Apr 2005
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JKelleyus View Post
What effect does deleting the IP's have on vB as a whole?
No effect, vBulletin still dont know the IPs of the members.
Quote:
Will it mess with the polling (if enabled for guests)?
I dont know how vBulletin handles polls regarding to guests. Backup your database and run the script.
Quote:
If I process server logs for statistical data, and then run the cron job, will my stats still be valid (I try and maintain a 7 day stat that includes geo-location by IP)?
The script is only responsible for vBulletin, the vBulletin database. Your Webserver logs are independent and the script wouldnt touch them. If you like to remove the logs you need to setup a additional linux cron job - the cron job mention by this plugin means vBulletin cron jobs (Scheduled Tasks).
Reply With Quote
  #10  
Old 02-22-2007, 11:39 PM
ZomgStuff ZomgStuff is offline
 
Join Date: Feb 2007
Posts: 469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reserved.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:41 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04547 seconds
  • Memory Usage 2,285KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete