vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=257228

Allow registration only from specified CIDR/IP(s) + include exceptions
by LordOfWAR_PC
16 Jan 2011 15:18

4 Attachment(s)
Mod was updated to the 1.2.1 version.

With using "Allow registration only from specified CIDR/IP(s)" plugin, you can allow registration on your forum only from specified CIDR(NetMask) region(s), like (192.168.1.0/24) or from specified IP addresses (like 192.168.1.1 and e.t.c.). Also you can allow all subnetworks and make an exception for others (ban them) by entering them into exceptions list (check example in the screenshot).

This modification was created using Jonavon Wilcox's PHP functions.

If you want to allow some subnetwork, but you don't know how to write it in CIDR formatting, then you can use for that simple CIDR/VLSM calculator.

If you don't know what means CIDR/VLSM, you can read this article on Wiki - CIDR.

Product was tested on VB 4.0.1, but it also must works on VB 3.x.x - 4.x.x.

Options screenshot :

As we can see from this screenshot, I am allowed all subnetworks (0.0.0.0/1,128.0.0.0/1) and denied only 192.168.1.0/24 subnetwork. But I also used IP exception list and allowed "192.168.1.3" IP adress, which is in denied subnetwork.


Error message :


Installation :

Just import xml file as usual VB product.

Uninstallation :

Just uninstall this product as any other VB product.

How to update :

Uninstall and then reinstall product (before that, it is recomended to save your old options into some place).

For multilanguage forums :

After installing of "Allow registration only from specified CIDR/IP(s)" product, you will be able to find and edit needed vbphrases :
  • allowregsfromcidr_error
  • setting_allowregsfromcidr_onoff_desc
  • setting_allowregsfromcidr_onoff_title
  • setting_allowregsfromcidr_masks_desc
  • setting_allowregsfromcidr_masks_title
  • setting_allowregsfromcidr_iplist_desc
  • setting_allowregsfromcidr_iplist_title
  • setting_allowregsfromcidr_cidrexceptionlist_desc
  • setting_allowregsfromcidr_cidrexceptionlist_title
  • setting_allowregsfromcidr_ipexceptionlist_desc
  • setting_allowregsfromcidr_ipexceptionlist_title
  • settinggroup_allowregsfromcidr

(English, Arabic (by Dr.osamA) and Russian language included).

worried 16 Jan 2011 19:23

I'll have to look into CIDR to properly use it but I like the idea. Instead of blocking the rest of the world I can allow specific regions.

irishblacknight 17 Jan 2011 01:25

Nice idea
I've no idea what I could use it for, but it's a nice idea :)

yahooooh 17 Jan 2011 01:36

i need to ban specific cidr/ip from registration
an opposite of this product
i hope if there are also accurate ip check for countries so ban country eazy

LordOfWAR_PC 17 Jan 2011 12:46

Quote:

Originally Posted by yahooooh (Post 2150273)
i need to ban specific cidr/ip from registration
an opposite of this product
i hope if there are also accurate ip check for countries so ban country eazy

Hm, I can add also field with denied cidr, so you will be able to deny some cidr and(or) allow some cidr...

LordOfWAR_PC 17 Jan 2011 14:55

Updated to the 1.2.1 version. All detalis in the first post.

Dr.osamA 18 Jan 2011 04:18

1 Attachment(s)
Excellent +5 stars
installed

translated to Arabic

plzz be nice and add XML fiel to 1st oregnal post

LordOfWAR_PC 18 Jan 2011 09:14

Quote:

Originally Posted by Dr.osamA (Post 2150774)
Excellent +5 stars
installed

translated to Arabic

plzz be nice and add XML fiel to 1st oregnal post

Thanks :).

Updated.

dormopoco 29 Jan 2011 10:04

where find italy CIDR

LordOfWAR_PC 29 Jan 2011 21:48

Quote:

Originally Posted by dormopoco (Post 2156000)
where find italy CIDR

Italy have many ISP's, so you want to block/allow them all or only some of them ? If all then there will be many records with many VLSM/CIDR regions...

dormopoco 30 Jan 2011 01:19

I would only allow ips Italian, tnx a lot! 4 your help.

LordOfWAR_PC 30 Jan 2011 12:00

2 Attachment(s)
Quote:

Originally Posted by dormopoco (Post 2156260)
I would only allow ips Italian, tnx a lot! 4 your help.

Ok, I am attached list (Italy_CIDR_VLSM.txt) of all Italian net-masks, written in CIDR/VLSM formatting.

First of all - you must delete all others allowed CIDRs/NetMasks which is in allowed list after plugin installation. Then you can open attached txt file with notepad, press Ctrl+A (to select all :)) and then you can paste it in "Allowed Sub-Networks (CIDR regions)" plugin field.

All Italian IP ranges I am get - there.

For future, you can convert IP ranges into CIDR formatting using Range_to_CIDR.php file, which I am attached to this post too (when it will be needed, you can upload php file to your site and then go to it via web-browser).

:)

dormopoco 30 Jan 2011 12:15

tnx man i love u! u save my site!

LordOfWAR_PC 30 Jan 2011 12:29

Quote:

Originally Posted by dormopoco (Post 2156397)
tnx man i love u! u save my site!

Don't forget to mark plugin as installed ;)

talonmike 02 Mar 2011 13:51

Wow, this was wath I needed!


All times are GMT. The time now is 03:41.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.