PDA

View Full Version : Administrative and Maintenance Tools - Advanced Ipban Manager


Carnage
10-28-2009, 10:00 PM
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

See https://vborg.vbsupport.ru/showthread.php?t=186342 this thread for 3.6+ version and some guides on usage.

SİMAR
11-19-2009, 10:05 AM
thanks

woffie
11-19-2009, 10:50 AM
Looks good

elwachiman
11-19-2009, 02:07 PM
thank xd

Prorockz
11-20-2009, 10:07 AM
im install this mod but im not find there options in admincp where i can get these options

dengbej
11-20-2009, 11:14 AM
thanks so much.

Mrquarter2
11-22-2009, 01:22 AM
I cannot get this to work. When I view ipbans.php it views the source code.

Dr.osamA
11-22-2009, 04:20 AM
woooow

thxxx
________
Iolite Portable Herbal Vaporizer Review (http://vaporizers.net)

Zaiaku
11-22-2009, 01:53 PM
More security control. I'm all for it. THX

Carnage
11-24-2009, 06:47 AM
im install this mod but im not find there options in admincp where i can get these options


Should appear down the side of the admin cp as 'advanced ip ban management.' You will only see it if your user account has permission to access it.


I cannot get this to work. When I view ipbans.php it views the source code.


My fault, I used the short php tags; goto line 1 change <? to <?php

Mrquarter2
11-25-2009, 04:50 PM
I added myself to the permissions list for it. I also fixed the source code.

But it still isn't showing up on the admin cp. Where would I look for it?

Carnage
11-26-2009, 06:54 AM
It should appear just above the user management block of links in the main menu

Mrquarter2
11-26-2009, 10:56 PM
It isn't there even after I gave myself the permissions to use it.

Carnage
11-27-2009, 07:46 AM
Try this:

goto: http://<your forum url>/admincp/ipbans.php

Mrquarter2
11-27-2009, 09:14 PM
I did that, and it just shows up saying that nobody is IP banned.

ultimatearco
11-28-2009, 09:14 PM
Having the same problem as MrQuarter.

DS MrSinister
11-29-2009, 02:08 AM
the way i got this to work was uninstalling it and editing the product file.

find

imhotek_ipbans

replace it with this..

ipbans

ultimatearco
11-29-2009, 11:48 AM
Tried that DS MrSinister, and it did not work.

DS MrSinister
11-29-2009, 12:46 PM
you can try the one i edited and see if it works for you.. don't forget to set your admin permissions for that user to make this work..

maybe try this edit to see if helps also..

open up bitfield_ipbans

find

misc


replace it with

ugp

hope one of these will help you..

ultimatearco
11-29-2009, 09:13 PM
Tried both and neither worked...

Carnage
11-30-2009, 10:42 PM
I'm unable to reproduce so i'm going to have to look at this closer

Mrquarter2
12-01-2009, 12:29 AM
I still can't get this to work :/

Carnage
12-01-2009, 09:59 AM
ok, i've got an alpha 2 release ready with updated xml files which should fix the issue. As I can't reproduce the issue, someone else will have to confirm that its fixed.

Sador
12-05-2009, 11:40 AM
Just installed. It doesn't show up anywhere in the admin panel. When I go to /admincp/ipbans.php it shows the following (check the attachment)

I've got full admin permissions, so unless I need to change permissions to be able to use this mod it should be fine.

Hope you can find out what's wrong, it seems like a nice mod.

Mrquarter2
12-06-2009, 01:19 PM
It works now :)

Carnage
12-08-2009, 07:56 PM
Just installed. It doesn't show up anywhere in the admin panel. When I go to /admincp/ipbans.php it shows the following (check the attachment)

I've got full admin permissions, so unless I need to change permissions to be able to use this mod it should be fine.

Hope you can find out what's wrong, it seems like a nice mod.


Did you install the latest alpha 2 release?

If so, check your admin permissions - this mod adds a new one. If its still not working, i'll need to come up with some more ideas for you to try to debug the issue so i can fix it.

As an aside, the reason that the alpha 1 release was broken was because i /tried/ to change the productid from the vb 3.7+ version of the mod (so that it wouldn't show as an update to users using that version) and didn't realise that it needed changing in a couple of extra places.

Sador
12-10-2009, 11:42 AM
Yeah, I installed the alpha 2.

"Administer Ipbans" [x] yes"

It still doesn't show up anywhere and when going to /admincp/ipbans.php it only shows the empty thing from the attachment.

Carnage
12-11-2009, 01:31 PM
ok, go into plugins and products.

Click edit by the product; if the product id is anything other than imhotek_ipbans you need to uninstall the product and reinstall it.

If it is imhotek_ipbans, go into includes/xml and open cpnav_ipbans.xml. check that the product field in all of the items (where present) is imhotek_ipbans. If it isn't change it to that.

Go back to the admincp, disable and then enable the product and refresh your admin cp.

Sador
12-11-2009, 02:39 PM
Just reinstalled it completely, now it seems to work. Don't know what went wrong the first time, but it works now. Thanks. :)

Carnage
12-19-2009, 03:27 PM
Beta 1 released.

New features added:

Range to CIDR calculator.
-Input two ip addresses and it'll calculate a set of bans required to cover the range given; this may not work in all instances and may not give the best set of bans.

Working product help and version check urls.
-Limitation on vbulletin.org meant that version urls weren't being checked correctly.
-Product was missing help url.

zonaenlinea
12-19-2009, 06:10 PM
thank prefec

Carnage
12-29-2009, 06:10 PM
I've updated the first post to contain more information about what this mod does.

I'm hoping to have a release out later this week to fix one or two minor errors (eg the short php tag in the admincp file)

smooth-c
12-30-2009, 02:05 AM
When do you expect the other features to be implemented? Great mod, I shall be installing this :)

Carnage
12-30-2009, 11:29 AM
import/export is high on my priority list, as is the automatic conversion tool. The integration into delete as spam was my reason for writing this in the first place...

Currently I'm working on a total rewrite of one of my other mods for vb4; after I've got a release out on that I'll be allocating time to my mods based upon their popularity. Major bugs (of which there shouldn't be any; this mod has been out and used for quite a while on 3.6+) will be fixed; but features are really based upon how much free time I have.

Was there any specific feature you are particularly after? (If I have to guess, I'd say the integration into delete as spam :p)

captkirk
01-03-2010, 05:17 PM
Great set of tools, voted and clicked as Installed.

Carnage
01-18-2010, 12:09 PM
Bit of a hold up on my expected release; i've been working on several other mods as well. Anyway, i've turned what was going to be just a bug fix release into a feature release. Adding a tool to check if a user is banned which returns a list of the users ips and if they are banned or not and a list of any ip bans affecting the user. Great to check you've got all the ips of a member on a dynamic ip address and also to figure out which bans are affecting users you didn't mean them to.

I'm also pleased to be able to move the core of this mod out of beta. Its been functioning very well on my site for ages and this thread (and the vb3.x version thread) hasn't reported any major issues with it either.

Next release will be uploaded in about 5 mins. (Once i've finished editing the first post)

captkirk
01-22-2010, 07:28 PM
Thanks for thr update

Carnage
01-26-2010, 07:55 PM
Uploaded a whole bunch of screenshots to show off the majority of the features in this product.

HolyKiller
02-24-2010, 11:06 PM
Cool mod, my supermods can finally IPbat without access in forum settings , thx !

zeroality
03-11-2010, 03:39 AM
This work on 4.0.2?

Carnage
03-11-2010, 10:10 AM
Yep, I have this installed and working on 4.0.2

Sador
03-11-2010, 01:01 PM
Some kind of quick IP banner from the postbit (banning the IP of that post) would be a nice feature.

Anyway, it's a nice mod.

wolfyman
03-21-2010, 06:21 PM
where do I enable this for a usergroup?

I want my super mods to be able to use it, but I can't find that setting!

ViktorDA
03-21-2010, 08:01 PM
Thank you.
Installed.

wolfyman
03-21-2010, 08:40 PM
Thank you.
Installed.

did you figure out where to give access to this tool by usergroup?

Carnage
03-22-2010, 11:18 AM
This is an admin cp tool; for someone to access it they need to be a) an admin and b) be given the admin permission 'Can Administer Ipbans'

TheVoidz
04-15-2010, 04:58 AM
I am having a problem with this mod. My web servers run on 32 bit systems, I believe PHP is having a problem with the use of bitwise operators because of this. Any suggestions?

Carnage
04-15-2010, 01:57 PM
IP's are 32 bits; so it should be ok...

Can you describe the specific symptoms this is causing I may be able to come up with a work around.

TheVoidz
04-15-2010, 02:23 PM
I believe the problem exists here;
$ip=sprintf("%u",ip2long($vbulletin->GPC['ip']));
$cidrmask = ((pow(2,$vbulletin->GPC['cidr']) -1) << (32 - $vbulletin->GPC['cidr'])); //nb only works with ipv4. for ipv6 changes need to be made.

$ip = $ip & $cidrmask;

Specifically with the last statement, and only when $ip is implicitly cast to a float(?). What happens is any ban above 127.255.255.255 results in PHP returning a maximum of 2147483647 not allowing anyone to ban anything above that range.

Da-Vinci
04-15-2010, 04:07 PM
It works great for me, thanks for all your effort and hard work

Carnage
04-15-2010, 06:05 PM
$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

$ip=sprintf("%u",ip2long($vbulletin->GPC['ip']));


with

$ip=ip2long($vbulletin->GPC['ip']);


but you will need to change the database coloum type from unsigned to signed.

TheVoidz
04-16-2010, 03:18 AM
$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.

Carnage
04-17-2010, 12:13 PM
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.

mordor1
04-24-2010, 01:23 PM
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

Carnage
04-25-2010, 04:48 PM
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.

mordor1
04-25-2010, 06:10 PM
Tanks got the right file now :) Good mod :up:

djackson265
04-27-2010, 03:11 AM
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?

Carnage
04-27-2010, 11:08 AM
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.

mhme
07-22-2010, 03:29 AM
The fix for 32 bit systems will be in the next release.

I can't fix the problem manually. so waiting for next release.

Alfa1
07-22-2010, 05:24 PM
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)

KURTZ
07-22-2010, 05:56 PM
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)

have you checked the 3.7.x version?

Carnage
07-26-2010, 12:22 AM
Does this work for vb 3.8.5?

There is a version released for 3.7+ however its now unsupported. Good news is as far as I'm aware this version's admincp file will work with the 3.7 version which brings you all the features that i've added only to the 4.0 version.


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)

You could add an exempt for the AOL block, however a more specific ban will override it. The foolproof solution would be either to add every AOL ip as an exempt OR to make every aol ip unbannable.

This mod wasn't designed to do as you are wanting so its possible but ugly.

Alfa1
07-26-2010, 02:17 AM
Would it be possible to add some sort of check if an IP is part of a proxy service like AOL? The largest problem with banning IPs is when you ban innocent users.

Carnage
07-26-2010, 11:52 AM
It does feature something which can tell you if a certain user is banned; one of the features I'd like to add is something to show which users are affected by a ban but its a rather intensive search so I need to figure a way to do it efficiently.

zaco
08-14-2010, 05:31 PM
Does it work with 4.0.5.?
On the left side of the adcp IP Ban Management appears. But, when I click on List IP Bans, Add IP Ban, or Tools, on the right side I get blank window.
Any solution?
Thnx in advance!

Carnage
08-17-2010, 03:39 PM
Can you right click the link and hit open in new window/tab and see what the url is?

zaco
08-17-2010, 05:11 PM
List IP Bans = h**p://www.myforum.net/admincp/ipbans.php
Add IP Ban = h**p://www.myforum.net/admincp/ipbans.php?do=add
Tools = h**p://www.myforum.net/admincp/ipbans.php?do=tools

All of three new opened windows are blank... :(

legacy123
08-23-2010, 09:27 PM
thanks for this it works well for people who do not want to give up all that access that you get if you let someone IP Ban the normal way :). Also this is how vB4 should have been released a stable product even at RC.

zaco
08-31-2010, 11:44 PM
It works with 4.0.5 now.

Carnage
09-27-2010, 09:13 AM
All of three new opened windows are blank...

Can you check all the files uploaded correctly; use the vbulletin suspect files tool in maintenance.

Also this is how vB4 should have been released a stable product even at RC.

I'm fairly conservative with my version numbers. This product has been under development for a couple of years meaning most bugs have been fixed already, it also runs on my own forums so I want it to be stable. Besides, in true software development rc should be stable - it is a candidate for being released if no (major) issues are found.

caciocode
10-06-2010, 09:36 AM
Sounds great! I have just tagged.

Pro-eSports.com
10-06-2010, 12:50 PM
Is this mod working for 4.0.7?

Carnage
10-09-2010, 09:48 AM
My own forums are currently on 4.0.6 so i've not personally tested on 4.0.7 however there is no specific reason I can think of which would stop it working on 4.0.7 and there haven't been any reports of it not working.

If in doubt, try it on a test installation first. If you have any problems let me know and i'll do my best to resolve them.

Lojo
10-10-2010, 03:54 AM
Is this mod working for 4.0.7?

I can confirm that this is working for version 4.0.7.

vb4newb
12-07-2010, 12:39 AM
works with vB 4.10 even grabbed my ban list from my vB 3.86 Mod of this from db

Sweet....

GooWood
02-02-2011, 03:26 AM
Hey i am having trouble giving permission to other people to use this tool. It works for me only. I have installed it twice now and both times same thing. I have given permission in the admin permissions. I am on 4.10.0 any ideas?

Carnage
02-03-2011, 05:52 AM
Do you have any other mods installed which provide their own admin permissions?

Edit:

I've been looking around at a few other bits of code and have a possible idea. Try renaming the two files in includes/xml (cpnav_ipbans.xml and bitfields_ipbans.xml) to cpnav_imhotek_ipbans.xml and bitfields_imhotek_ipbans.xml then uninstall/reinstall the product. I'm planning a new release of this product soon; if this fixes it for you I can add it as a fix into the released product

Trumpetrhapsody
03-02-2011, 04:03 PM
Is this mod still working? I tried to add an IP recently and it just put 127.255.255.255 in the IP field no matter what I did, and testing the IP i tried to ban showed it was still accepted so it's not just a display error.

makanmakan
03-02-2011, 05:43 PM
Are you using the supported version? It says that he last updated on the 18th of january 2010. Which is over a year ago now.

Trumpetrhapsody
03-02-2011, 05:51 PM
Yeah, latest version.

Ashley B
04-04-2011, 07:28 AM
Is this mod still working? I tried to add an IP recently and it just put 127.255.255.255 in the IP field no matter what I did, and testing the IP i tried to ban showed it was still accepted so it's not just a display error.

I have the same error.
At first, it was okay, but after 12 ips, it's just displaying 127.255.255.255
How can I fix this?

Carnage
04-07-2011, 05:14 PM
Thats quite a strange issue; what do you have the cidr range set to?

Also, do you know if you are running a 32 or 64 bit operating system?

HolyKiller
04-10-2011, 03:51 PM
Works fine for me on 4.1.3 :)

StonePilot
04-20-2011, 05:23 PM
This is a great tool, thank you for developing this.

Feature Request: Quickly ban all users associated with an IP
I am getting HAMMERED by spambots and some of them make upwards of 250 accounts on a single IP before we catch them. It would be nice to have an admincp tool and/or a supermod tool that would ban ALL of the users on that IP while blocking site access from the IP as well.

Right now we have to open each and every single user account and then ban the user, then go back and move onto the next user account, ban them ... then repeat. It takes a LONG time, and now that we're serious about this I've found maybe 1,000 total accounts that need to be deleted from just only maybe 20 IP addresses.

I am willing to donate $30 towards development of this type of tool, anyone willing to match that or kick in something? I'm looking for a solution in the very near term.

Thanks again for the work done on this project.

Carnage
04-21-2011, 05:38 AM
I'll investigate how much effort that would be over the weekend.

If its going to be done a 'delete all posts from this ip' feature would probably help as well

TeknoSounds
04-21-2011, 05:58 AM
This is a great tool, thank you for developing this.

Feature Request: Quickly ban all users associated with an IP
I am getting HAMMERED by spambots and some of them make upwards of 250 accounts on a single IP before we catch them. It would be nice to have an admincp tool and/or a supermod tool that would ban ALL of the users on that IP while blocking site access from the IP as well.

Right now we have to open each and every single user account and then ban the user, then go back and move onto the next user account, ban them ... then repeat. It takes a LONG time, and now that we're serious about this I've found maybe 1,000 total accounts that need to be deleted from just only maybe 20 IP addresses.

I am willing to donate $30 towards development of this type of tool, anyone willing to match that or kick in something? I'm looking for a solution in the very near term.

Thanks again for the work done on this project.

Should look into Spam-O-Matic or one of its lesser incarnations for spam prevention. For before it gets necessary to use this mod :)

steviewonder44
05-19-2011, 08:47 PM
Not working same error.

Dragaon
07-04-2011, 07:25 PM
Is this mod still working? I tried to add an IP recently and it just put 127.255.255.255 in the IP field no matter what I did, and testing the IP i tried to ban showed it was still accepted so it's not just a display error.

Same problem here exactly :(

blowy
07-09-2011, 01:05 AM
Yep im getting the same issue on the spam bot ip range, if i type in 188.123.248.62 to ban a well know russian bot network it saves it to 127.255.255.255. On the plus side normal users who misbehave get banned ok. go figure......

SVIT.Share
07-09-2011, 01:42 AM
Please ask, this program vbb spend for version 4.1.3?

I translate by Google

Carnage
07-09-2011, 07:08 AM
@SVIT.Share: I assume you are asking if it works on 4.1.3 or if it is free for version 4.1.3 The answer to both questions is YES.

I have just tested the 188.123.248.62 ip address on my installation and it worked fine. So standard debug questions:

1. What CIDR range did you set?
2. What version of vbulletin are you running?
3. What version of php and mysql are you running (of most importance is 32bit/64bit)?

cash7c3
07-14-2011, 05:06 PM
Would be great to be able to allow SuperMods to use this tool.

Carnage
07-31-2011, 12:22 PM
It would be possible with a few tweaks. You would just need to change the permissions that are used from admin permissions to moderator permissions and upload the files to the modcp directory instead.

Jncocontrol
07-31-2011, 05:11 PM
This looks quite useful, But most of my troublesome users are behind a proxy and thus would make this useless.
Is there a way that you can auto-detect a previously already IP banned user and auto-ban that IP as well.

Carnage
08-01-2011, 04:32 PM
how would you go about detecting them?

David_R
08-02-2011, 07:36 AM
Thanks for a such a gr8 mod, :)

JasonP38
08-03-2011, 11:46 PM
Installed.

thank you :)

JasonP38
08-04-2011, 07:43 PM
Hey i am having trouble giving permission to other people to use this tool. It works for me only. I have installed it twice now and both times same thing. I have given permission in the admin permissions. I am on 4.10.0 any ideas?

I'm on 4.0.7 and I'm having the same problem.

Jncocontrol
08-07-2011, 07:38 PM
how would you go about detecting them?

Just a thought: You could intergrate Paul M's Proxy detector.

Carnage
08-10-2011, 05:42 AM
Hey i am having trouble giving permission to other people to use this tool. It works for me only. I have installed it twice now and both times same thing. I have given permission in the admin permissions. I am on 4.10.0 any ideas?

If the permissions are showing up, then it should be possible to allow others access. The only related issue I've found was it not actually installing the permissions in the first place.

PirateTinman
08-20-2011, 09:22 PM
I have this working on 4.1.5
For those with issues with permissions try installing the mod again, that's how I fixed my issue with them.

aidler
09-08-2011, 01:48 PM
I have just tested the 188.123.248.62 ip address on my installation and it worked fine. So standard debug questions:

1. What CIDR range did you set?
2. What version of vbulletin are you running?
3. What version of php and mysql are you running (of most importance is 32bit/64bit)?

Same problem here. 188.123.248.62 becomes 127.255.255.255.

1. Default 32
2. 4.1.5 Patch Level 1
3. php: 5.2.14 - mysql: 5.0.67 - no idea if it's 32bit or 64 bit though. where can i see that?

abinadi
09-20-2011, 03:05 PM
Ok - hopefully a simple answer -

How do I ban a range of IP's - My specific problem is I have hundreds of "guests" trying to access my forum. As it is a closed and private forum I need to be able to ban the IP's
180.76.5.xxx - all bots from China.

I can ban them one at a time and it works greatly as single bans - but way too time comsuming to ad an IP one at a time.

Suggestions?

180.76.5.0 with a cidr of 24 - got it thx

Carnage
09-21-2011, 05:28 PM
you would be better off with cidr of 16

if you use the whois tool, you can see this:


inetnum: 180.76.0.0 - 180.76.255.255
netname: Baidu
descr: Beijing Baidu Netcom Science and Technology Co., Ltd.
descr: Baidu Plaza, No.10, Shangdi 10th street,Haidian District Beijing,100080
country: CN
admin-c: WN141-AP
tech-c: JC2179-AP
mnt-by: MAINT-CNNIC-AP
mnt-lower: MAINT-CNNIC-AP
mnt-routes: MAINT-CNNIC-AP
status: ALLOCATED PORTABLE
changed: hm-changed@apnic.net 20090715
source: APNIC


Basically the block of ips is from 180.76.0.0 to 180.76.255.255 so to block them all you need a cidr of 16

StonePilot
10-13-2011, 02:07 PM
I'm confused. Is there an answer to the 127.255.255.255 issue?

Carnage
11-20-2011, 09:36 AM
Currently I'm unable to replicate that issue, so I'm waiting for some more debugging information.

The issue is caused by something somewhere not handling integers as unsigned and capping it at the maximum signed value for an integer.

mc0676
01-26-2012, 06:52 AM
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.

I did that, but not work for me.
My 2 co-admins cannot see Ip Ban Manager and mine yes !

RedPoint
01-26-2012, 03:30 PM
hi, i know, it's a old thread, but its run this in vers. 4.1.10 ?

SuperTaz
01-26-2012, 04:43 PM
Thank you. Installed. :)

Nirjonadda
02-24-2012, 03:09 PM
Not working for 4.1.10 database error.

tommythejoat
03-26-2012, 01:43 AM
We have about 3400 ip wild card strings in the settings ip bans. I was wondering if there has been any progress on an import facility.

One difficult issue seems to be recognizing contiguous ip bans that cannot be expressed in the vBulletin wild card format and making them into cidr addresses.

It is a bit of coding, but it looks like one could just take the values from the settings table and convert them to entries in the ipbans table.

I tried doing it with an Excel spreadsheet and decided it would be much easier to program it in php. However, it is more work than I would want to do if it is already being done by someone.

I found a much better bulk ip to cidr calculator than the one included in the product. It's notation is different from the vB notation also (of course). The calculator is located at http://ip2cidr.com/bulk-ip-to-cidr-converter.php.

I really wish this product accepted the standard cidr notation and accepted bulk input.

All in all the ability to have exempt ip's is a critically needed benefit and I really like the product.

MacGuyInNC
04-19-2012, 01:14 AM
Does anyone have this working on 4.1.12? I'd love to implement this and block a lot of the problematic regions with which my forum will not have any dealings. ;)

MacGuyInNC
05-25-2012, 07:09 PM
Upgraded my site to 4.2. Can anyone confirm whether this works?

Carnage
11-28-2012, 06:06 AM
It works well on 4.1.12; don't know about 4.2 as i'm not running that version.

DAMINK
12-25-2012, 10:26 AM
Does not appear to work for me..... Well im not 100% sure.
I have for example one ip address banned.
Yet i still get daily registration attempts that get trapped by a timer delay during registration.

I wonder. does this mod wait until registration is complete before denying the registration or at the point the ip address hits the server?
If the latter then it does not appear to be working for me.

I am running Latest version available: 4.2.0 Patch Level 3

I do have a few other mods in place and are working through those as possible conflicts as i type this but felt i would notify the community of my findings.

Thanks DAMINK.

HolyKiller
04-26-2014, 02:59 PM
I can confirm that the mod works fine on 4.2.2 PL1

nchristoph
12-07-2014, 06:30 PM
Is there an similar mod for VB 5 or will this one be ported over?

ozzy47
12-07-2014, 06:51 PM
Nothing for vB5 yet. There is very few mods for vB5. :(