Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Advanced Ipban Manager Details »»
Advanced Ipban Manager
Version: 4.0-0.4 rc, by Carnage Carnage is offline
Developer Last Online: Sep 2014 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.0.0 Rating:
Released: 10-28-2009 Last Update: 01-17-2010 Installs: 170
DB Changes Uses Plugins
Additional Files  
No support by the author.

What does this do?
This is intended as a replacement for the ip bans under vbulletin options. It allows for timed ip bans, cidr ranges and attatching reasons to bans.

It also features registration only ip bans allowing members who may be effected by an ip ban to continue using the forums, but blocking registrations and ip ban exempts so that you can ban a large range of ips and let through a smaller subset of them.

What can I use it for?
This is a much better tool for managing ip bans on your forums. As it has its own permissions, you can grant admins access to it without needing them to have full access to the vbulletin settings. For more details see the features list.

Features
  • A new interface, separate to the options for adding and removing ip bans.
  • Set expiry dates and reasons for ip bans
  • See who set which ip bans
  • Set ip bans by cidr range.
  • Set registration only ip bans (great for stopping spam bots without affecting existing forum users)
  • Set exempt ip bans (ban a large range of ips and only allow select ips through the ban)
  • Define unbannable ips in config.php
  • A range of tools for assisting usage including:
    • Cidr to range calculator (see what range a certain ban will affect)
    • Range to cidr calculator (creates a set of bans to cover any arbitrary range [experimental]
    • Test an ip (enter an ip to see if its banned or not and which if any bans affect it)
    • Whois an ip (get information on who owns (eg which isp) an ip and the cidr range of ips that they own (simplifying blocking users on dynamic ips)) [Dependant on host and server OS]
    • Check if a user is banned (enter a username/userid to see if they are banned or not)

Planned features
  • Ban a user (some sort of integration and automation to ip ban users from their admincp profile)
  • Integration with delete as spam feature to allow automatically ip banning spammers
  • Inport/Export ip bans to share with others and amongst other sites you own
  • Os independent whois and results parsing (eg give novice admins a hand in picking out the important bits)
  • Automatic conversion from old bans into new ones.
  • Phrases for admincp areas (that are currently lacking them)
  • Integrated Admin help

Installation
1. Backup db.
2. Upload files from zip.
3. Import product file.
4. Setup admin permissions for your staff.

Upgrading from 3.6+ version of this mod
1. Backup db
2. Use the uninstall option for the 3.6 version of this product. (this will leave your ip bans in tact)
3. Upload the new files from the zip, overwriting the old ones
4. Import the new product file.
5. Check admin permissions for your staff members.

Upgrading from previous versions of this mod
1. Upload files in upload directory
2. Import product (allowing override)

Uninstallation
1. Backup db.
2. Uninstall the product file.
3. Manually delete the ipbans table from your database (unless you want to keep it)
4. Delete the files that were included with this release.

Changelog
  • 4.0-0.4 rc1
    • Changed min cidr range from 16 to 8.
    • Added md5 sums file, ipban manger will no longer come up as suspect files in diagnostics (unless someone has tampered with the files)
    • Added feature to check if a user is banned
  • 4.0-0.4 b2 (unreleased)
    • Fixed a couple of minor bugs
      • Redirecting to the wrong place after adding an ip ban
      • Short php tag at top of admincp file
  • 4.0-0.4 b1
    • Added tool to calculate cidrs from an arbitary range
    • Fixed product help and version check urls
  • 4.0-0.4 a2
    • Fixed bug with admincp menu not showing
  • 4.0-0.4 a1
    • initial release

Notes

Download Now

File Type: zip Advanced IP ban Manager v4.0-0.4 release candidate 1.zip (23.5 KB, 1030 views)

Screenshots

File Type: jpg ipbans add.jpg (52.5 KB, 0 views)
File Type: jpg ipbans cidr calculator.jpg (32.9 KB, 0 views)
File Type: jpg ipbans ip ban checker.jpg (51.0 KB, 0 views)
File Type: jpg ipbans list.jpg (37.9 KB, 0 views)
File Type: jpg ipbans range calculator.jpg (43.0 KB, 0 views)
File Type: jpg ipbans tools1.jpg (67.8 KB, 0 views)
File Type: jpg ipbans tools2.jpg (64.3 KB, 0 views)
File Type: jpg ipbans user ban checker.jpg (62.7 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
mohammadxxx

Comments
  #52  
Old 04-15-2010, 06:05 PM
Carnage Carnage is offline
 
Join Date: Jan 2005
Location: uk
Posts: 760
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
$ip=sprintf("%u",ip2long($vbulletin->GPC['ip'])); 
That line casts to an unsigned int should raise the max allowed value to 2147483647*2

Try replacing instances of
PHP Code:
$ip=sprintf("%u",ip2long($vbulletin->GPC['ip'])); 
with
PHP Code:
$ip=ip2long($vbulletin->GPC['ip']); 
but you will need to change the database coloum type from unsigned to signed.
Reply With Quote
  #53  
Old 04-16-2010, 03:18 AM
TheVoidz TheVoidz is offline
 
Join Date: Nov 2002
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
$ip=sprintf("%u",ip2long($vbulletin->GPC['ip'])); 
Makes the $ip a string with a max value of 2147483647*2. Then when PHP needs to do arithmetic on the string it implicitly casts it to a float if it is larger then 2147483647 (for 32-bit systems) otherwise an int. On 64-bit systems PHP expands integers to 2^64.

Right, I had already figured out the problem. I removed the sprintf and allowed the AND to be done with the integers then printed it as an unsigned int in the query.

Your solution works perfectly.
Reply With Quote
  #54  
Old 04-17-2010, 12:13 PM
Carnage Carnage is offline
 
Join Date: Jan 2005
Location: uk
Posts: 760
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I didn't realize that php would automatically convert back till I consulted the documentation following your issue the fix for 32 bit systems will be in the next release.
Reply With Quote
  #55  
Old 04-24-2010, 01:23 PM
mordor1 mordor1 is offline
 
Join Date: Apr 2010
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When i try to import md5_sums_ipbans.xml I get the following error

XML Error: Invalid document end at Line 16

using vb 4.0.3 Patch Level 1
Reply With Quote
  #56  
Old 04-25-2010, 04:48 PM
Carnage Carnage is offline
 
Join Date: Jan 2005
Location: uk
Posts: 760
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats in the uploads folder for a reason :P upload it don't import it, it stops vbulletin from seeing the mods files as being 'not a part of vbulletin' in the diagnostic tools, it also makes sure that the files that come with this mod have not become currupt.
Reply With Quote
  #57  
Old 04-25-2010, 06:10 PM
mordor1 mordor1 is offline
 
Join Date: Apr 2010
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tanks got the right file now Good mod :up:
Reply With Quote
  #58  
Old 04-27-2010, 03:11 AM
djackson265 djackson265 is offline
 
Join Date: Feb 2010
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would it be too much to ask for specific instructions for setting permissions to make this feature available for a user account, or for the administrators group?
Reply With Quote
  #59  
Old 04-27-2010, 11:08 AM
Carnage Carnage is offline
 
Join Date: Jan 2005
Location: uk
Posts: 760
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In order to make this avaliable for a user, they must be an administrator. Then you need to edit their admin permissions and give them the can admin ipbans permission.
Reply With Quote
  #60  
Old 07-22-2010, 03:29 AM
mhme mhme is offline
 
Join Date: Jun 2004
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Carnage- View Post
The fix for 32 bit systems will be in the next release.
I can't fix the problem manually. so waiting for next release.
Reply With Quote
  #61  
Old 07-22-2010, 05:24 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work for vb 3.8.5?
Does this modification allow us to prevent blocking collective proxy IPs like AOL has? (blocking one AOL IP will block a mass of different AOL IPs)
Reply With Quote
Reply


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 04:49 PM.


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.09667 seconds
  • Memory Usage 2,358KB
  • Queries Executed 26 (?)
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
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (9)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete