vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - Advanced Ipban Manager (https://vborg.vbsupport.ru/showthread.php?t=227013)

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

Quote:

Originally Posted by ViktorDA (Post 2007737)
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;
PHP Code:

$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

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.

TheVoidz 04-16-2010 03:18 AM

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.

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

Quote:

Originally Posted by Carnage- (Post 2022641)
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

Quote:

Originally Posted by Alfa1 (Post 2073010)
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

Quote:

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.

Quote:

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

Quote:

All of three new opened windows are blank...
Can you check all the files uploaded correctly; use the vbulletin suspect files tool in maintenance.

Quote:

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

Quote:

Originally Posted by Pro-eSports.com (Post 2107388)
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.


All times are GMT. The time now is 01:02 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.01432 seconds
  • Memory Usage 1,822KB
  • 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
  • (5)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete