Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Advanced IP Ban Manager Details »
Advanced IP Ban Manager
Mod Version: 0.3.1, by Carnage (Coder) Carnage is offline
Developer Last Online: Sep 2014 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.7.x Rating: (3 votes - 4.67 average) Installs: 139
Released: 25 Jul 2008 Last Update: 12 Jun 2009 Downloads: 1337
Not Supported DB Changes Uses Plugins Additional Files Translations Is in Beta Stage  

Advanced IP ban manager

What is it/What does it 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.

Features
  • Ip bans
  • Timed ip bans
  • Ip ban exempts
  • Registration only bans
  • Ban by cidr range
Installation
Backup db.
Upload files from zip.
Import product.
Refresh admincp.

Once Version 0.3 is installed; upload the attached php file into your admin cp to replace the one already there. This file fixes a couple of minor issues for some people.

Changelog
  • 0.3.1
    Added a work around for issues of 0.0.0.0 ips being banned on any system where ip2long returned a signed int instead of an unsigned int.
  • 0.3
    Fixed bug where ip bans wouldn't block registrations unless set to registration only.
    Added file with a list of common spambot ips that can be auto banned.
    Changed limit on cidr range from 16 to 4 As i often came across instances where i wanted to ban larger ranges
  • 0.2.1b
    Added a bitfield rebuild to installer to fix issues with menu not showing.
  • 0.2b
    Fixed bug in instal code.
  • 0.2a
    Added admin permissions and exempt bans
  • 0.1a
    Initial release.


Notes

This has been tested on 3.7.2 but should work on 3.6.x, 3.7.x and 3.8.x

This mod has not been tested on vbulletin 4; a separate, improved vbulletin 4 version can be found HERE

Access is now controlled by an admincp permission however no control over ip banning is done.

This variable can be used in the config file to prevent banning any ip/range of ips that contain the ips listed in it: $config['SpecialUsers']['unbannableips'] = "127.0.0.1|127.0.0.2";
Ips should be separated by a | symbol. This will not effect any bans that are already in place.

Bans are limited to a cidr range of 4. (This should be more than enough) If you require a ban that covers more than this, it should be set in the database. If there is demand for it, I may make the cidr limit optional/changable in future versions.

Exempts/bans work by taking the tightest cidr range match. eg if you ban 127.0.0.1/16 and add an exempt for 127.0.0.1/24 the exempt will take precedence, however adding another ban against 127.0.0.1/32 would override the exempt.

When uninstalling, the mod will remove the modifications to the admin table, however it is upto you to drop the ipbans table yourself. This has been done in order to preserve the data in that table incase you still want it for something.

I've added a file which was created by a member of my admin team, it contains a large list of ip addresses from which A lot of malignant traffic seems to come from. If you are having trouble with spam bots this list may help in preventing them from registering. To use the file visit the url : <your forum url>/admincp/ipban.spambots.php It will ask you to log in to your cp then display a blank page; this is to be expected as all its doing is inserting into the database. It will add approximately 140 bans; so they've been coded NOT to show up in the ip ban list. This feature is something i plan to expand on with a full interface for viewing, creating, adding and removing ip blocklists, but for now this mechanism is what i've come up with.

Support

As all of my boards have been upgraded to vbulletin 4, I am no longer actively maintaining any of my vb3.x mods. Free support for all of my 3.x mods is being removed from the 31st of March 2010 after this date, I will only be offering paid support for 3.x mods; downloading and usage of the mods will remain free but unsupported.

Please pm me for support of 3.x mods as I will not be checking their threads very often.

Support is now offered as this is a beta release. I'll be checking vborg from time to time but for critical support issues, you are best contacting me on my own forums.

I'm hoping that this version (0.3) is bug free, so this can be considered a release candidate version.


I've uploaded a fixed php file for some people who were having problems with short php tags and other parse errors. This needs to be uploaded to the admin cp. The file will be added into the zip once in the next release.

This mod will be has been upgraded to support vb4 The vbulletin 4 version will be released once the beta goes public.

Extra features in vb4.0 version:
  • whois ip from admin cp
  • cidr calculator (shows the ip range that a cidr bans)
  • test bans (enter an ip to see if its banned or not)

Planned features for future versions:
  • import/export bans
  • integration into 'delete posts as spam' => admins with suitable permissions will be able to select a box to ban the posters ip(s) in addition to banning their account(s)

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	ss1.JPG
Views:	2136
Size:	39.7 KB
ID:	85478   Click image for larger version

Name:	ss2.JPG
Views:	1690
Size:	20.3 KB
ID:	85479  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Administrative and Maintenance Tools Advanced Template Manager Dream vBulletin 3.6 Add-ons 55 18 Sep 2010 21:03
Administrative and Maintenance Tools Advanced Plugin Manager akanevsky vBulletin 3.6 Add-ons 32 03 Jul 2009 02:13
Administrative and Maintenance Tools Advanced Plugin Manager - Reloaded Revan vBulletin 3.6 Add-ons 25 14 Jan 2009 17:33
Advanced Plugin Manager akanevsky vBulletin 3.5 Add-ons 63 12 Aug 2007 21:04
Advanced Plugin Manager Andreas vBulletin 3.5 Add-ons 79 28 May 2006 00:15

  #31  
Old 20 Aug 2008, 07:50
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Real name: Christian
so if i want to ban a user with the 127.0.0.1 (dynamic) i might set the cidr to 8? so ALL the 127.0.0.xxx (or xxx.0.0.1, 127.x.0.1, 127.0.x.1) are banned?

i think this is a very useful tool ... but i don't understand how it works ... :S
Reply With Quote
  #32  
Old 20 Aug 2008, 23:57
Carnage Carnage is offline
 
Join Date: Jan 2005
so if i want to ban a user with the 127.0.0.1 (dynamic) i might set the cidr to 8? so ALL the 127.0.0.xxx (or xxx.0.0.1, 127.x.0.1, 127.0.x.1) are banned?
setting it to 8 would be all of 127.x.x.x To ban 127.0.0.x you need to set it as 24 (32-8)

This wikipedia article explains Cidr ranges in a lot of detail. For a basic idea, take a look at the table about half way down the page: http://en.wikipedia.org/wiki/Classle...Domain_Routing
__________________
www.giveupalready.com

If you want/need to contact me, best thing is to pm me on that site, username Carnage.
Reply With Quote
  #33  
Old 31 Aug 2008, 14:59
1Matthew1 1Matthew1 is offline
 
Join Date: Apr 2008
Can you include the ability to ban ip ranges?
And for me it doesen´t work. Everytime it bans ip 0.0.0.0

Last edited by 1Matthew1; 31 Aug 2008 at 15:25.
Reply With Quote
  #34  
Old 04 Sep 2008, 01:36
Carnage Carnage is offline
 
Join Date: Jan 2005
it does ban ip ranges, thats what the cidr is for.

/me thinks this needs some admin help popups... expect them when i release an update.

mathew: what are teh other settings for your ip ban? what vb version are you using?
__________________
www.giveupalready.com

If you want/need to contact me, best thing is to pm me on that site, username Carnage.
Reply With Quote
  #35  
Old 23 Sep 2008, 03:18
angeldevil angeldevil is offline
 
Join Date: Aug 2005
I ve tried to Ban IP 203.160.1.43 but every try it bans IP 0.0.0.0 ??? Dont know why ??? Pls Help Carnage Thank you so much
__________________
The Best Vietnamese Entertainment Forum On The Net http://giaitrituoitre.net . Stay and have fun !
Reply With Quote
  #36  
Old 23 Sep 2008, 13:17
thompson thompson is offline
 
Join Date: Jul 2007
Real name: Thomas
sounds good. marked for installation.
__________________
My Babies:Sport Community | Bodybuilding - Fitness - Training
Reply With Quote
  #37  
Old 28 Sep 2008, 12:33
Mrdby Mrdby is offline
 
Join Date: Apr 2007
Real name: MrDby
so this is ok for 3.7.3?
Reply With Quote
  #38  
Old 30 Sep 2008, 15:52
Carnage Carnage is offline
 
Join Date: Jan 2005
i've not tested on 3.7.3 however there shouldn't be any problems.

@angeldevil, what vb version are you using? What other values are you adding the the form?
__________________
www.giveupalready.com

If you want/need to contact me, best thing is to pm me on that site, username Carnage.
Reply With Quote
  #39  
Old 01 Oct 2008, 12:47
angeldevil angeldevil is offline
 
Join Date: Aug 2005
im using Vbb 3.7.2
IP Address 203.160.1.43 ( or 203.160.1.48 same thing happen )
CIDR Range (if you are unsure what this does, leave it as 32) 32
Registrations only? NO
Exempt IP? (not yet implemented) NO

Thank you for ur help Carnage
__________________
The Best Vietnamese Entertainment Forum On The Net http://giaitrituoitre.net . Stay and have fun !
Reply With Quote
  #40  
Old 06 Oct 2008, 23:33
Sevo Sevo is offline
 
Join Date: Nov 2007
Just uploaded to use it on 3.7.3. It doesnt seem ti be working as all i see script language when i pull up the admin panel.. any ideas?
Reply With Quote
  #41  
Old 14 Oct 2008, 18:15
Carnage Carnage is offline
 
Join Date: Jan 2005
sevo: can you post the 'script language' it comes up with.

angeldevil: can you try with a different cidr; say 31 ?
__________________
www.giveupalready.com

If you want/need to contact me, best thing is to pm me on that site, username Carnage.
Reply With Quote
  #42  
Old 16 Oct 2008, 22:41
angeldevil angeldevil is offline
 
Join Date: Aug 2005
TY Carnage i can ban that IP while change CIDR to 31
__________________
The Best Vietnamese Entertainment Forum On The Net http://giaitrituoitre.net . Stay and have fun !
Reply With Quote
  #43  
Old 18 Oct 2008, 18:38
mark370 mark370 is offline
 
Join Date: Feb 2008
So if ive understood this correct if i use the CIDR range /24 to ban IP: 9.10.166.9/24 that will ban the [256 ips] from 9.10.166.0 through to 9.10.166.255.

Btw thats a Example IP
Reply With Quote
  #44  
Old 27 Oct 2008, 08:39
Businesss Businesss is offline
 
Join Date: Feb 2008
I can't get this to work either. I ban a single ip address using this mod and the same address is used just minutes after.....Hmmmmm.

I'm using (vBulletin 3.7.2 Patch Level 2)
Reply With Quote
  #45  
Old 28 Oct 2008, 10:13
amaarvell amaarvell is offline
 
Join Date: Nov 2006
Originally Posted by Carnage- View Post
I've added some code to the installer which should fix the issue you are having.

Incidentally, is anyone else having issues with the menu not showing? (it should appear under the users menu)
I have just installed on 2 forums and nothing shows in the menu of either
__________________
Buy or Sell Your Stock or Unwanted Items at http://www.fullcarboot.co.uk
Open Your Own Store in our brand new eShopping Centre today currently FREE for a Full Year.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 19:02.

Layout Options | Width: Wide Color: