Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Allow registration only from specified CIDR/IP(s) + include exceptions Details »
Allow registration only from specified CIDR/IP(s) + include exceptions
Mod Version: 1.2.1, by LordOfWAR_PC (Member) LordOfWAR_PC is offline
Developer Last Online: Nov 2013 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (1 vote - 5.00 average) Installs: 13
Released: 16 Jan 2011 Last Update: 18 Jan 2011 Downloads: 85
Not Supported Uses Plugins Re-usable Code Translations  

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).

Download Now

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

Screenshots

Click image for larger version

Name:	error.jpg
Views:	725
Size:	41.4 KB
ID:	125691   Click image for larger version

Name:	params_en.jpg
Views:	613
Size:	158.9 KB
ID:	125722  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 16 Jan 2011, 19:23
worried worried is offline
 
Join Date: Jan 2009
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.
Reply With Quote
  #3  
Old 17 Jan 2011, 01:25
irishblacknight irishblacknight is offline
 
Join Date: May 2003
Nice idea
I've no idea what I could use it for, but it's a nice idea
__________________
European Hosting | Blog|Movie Chat
Reply With Quote
  #4  
Old 17 Jan 2011, 01:36
yahooooh yahooooh is offline
 
Join Date: Dec 2009
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
__________________
بيع شراء
الوطنية
اخبار عصام مطير البلوي
Reply With Quote
  #5  
Old 17 Jan 2011, 12:46
LordOfWAR_PC LordOfWAR_PC is offline
 
Join Date: Jan 2011
Originally Posted by yahooooh View Post
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...
Reply With Quote
  #6  
Old 17 Jan 2011, 14:55
LordOfWAR_PC LordOfWAR_PC is offline
 
Join Date: Jan 2011
Updated to the 1.2.1 version. All detalis in the first post.
Reply With Quote
  #7  
Old 18 Jan 2011, 04:18
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Real name: Dr.osama
Excellent +5 stars
installed

translated to Arabic

plzz be nice and add XML fiel to 1st oregnal post
Attached Files
File Type: xml product-AllowRegsFromCIDR_AR_by alra7ba.xml (13.6 KB, 2 views)
__________________
Reply With Quote
  #8  
Old 18 Jan 2011, 09:14
LordOfWAR_PC LordOfWAR_PC is offline
 
Join Date: Jan 2011
Originally Posted by Dr.osamA View Post
Excellent +5 stars
installed

translated to Arabic

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

Updated.

Last edited by LordOfWAR_PC; 18 Jan 2011 at 09:23.
Reply With Quote
  #9  
Old 29 Jan 2011, 10:04
dormopoco dormopoco is offline
 
Join Date: May 2007
where find italy CIDR
Reply With Quote
  #10  
Old 29 Jan 2011, 21:48
LordOfWAR_PC LordOfWAR_PC is offline
 
Join Date: Jan 2011
Originally Posted by dormopoco View Post
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...
Reply With Quote
  #11  
Old 30 Jan 2011, 01:19
dormopoco dormopoco is offline
 
Join Date: May 2007
I would only allow ips Italian, tnx a lot! 4 your help.
Reply With Quote
  #12  
Old 30 Jan 2011, 12:00
LordOfWAR_PC LordOfWAR_PC is offline
 
Join Date: Jan 2011
Originally Posted by dormopoco View Post
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).

Attached Files
File Type: txt Italy_CIDR_VLSM.txt (16.5 KB, 9 views)
File Type: php Range_to_CIDR.php (6.9 KB, 5 views)

Last edited by LordOfWAR_PC; 30 Jan 2011 at 12:15.
Reply With Quote
  #13  
Old 30 Jan 2011, 12:15
dormopoco dormopoco is offline
 
Join Date: May 2007
tnx man i love u! u save my site!
Reply With Quote
  #14  
Old 30 Jan 2011, 12:29
LordOfWAR_PC LordOfWAR_PC is offline
 
Join Date: Jan 2011
Originally Posted by dormopoco View Post
tnx man i love u! u save my site!
Don't forget to mark plugin as installed
Reply With Quote
  #15  
Old 02 Mar 2011, 13:51
talonmike talonmike is offline
 
Join Date: Sep 2005
Wow, this was wath I needed!
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 12:04.

Layout Options | Width: Wide Color: