Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

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

Category: Miscellaneous Hacks - Version: 4.x.x Rating:
Released: 01-15-2011 Last Update: 01-17-2011 Installs: 14
Uses Plugins
Re-useable Code Translations  
No support by the author.

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

File Type: zip [3-4.x.x]_Allow_Regs_From_CIDR_1_2.zip (128.7 KB, 86 views)

Screenshots

File Type: jpg error.jpg (41.4 KB, 0 views)
File Type: jpg params_en.jpg (158.9 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
vicking74

Comments
  #2  
Old 01-16-2011, 06:23 PM
worried worried is offline
 
Join Date: Jan 2009
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 01-17-2011, 12:25 AM
irishblacknight irishblacknight is offline
 
Join Date: Apr 2003
Location: Europe
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice idea
I've no idea what I could use it for, but it's a nice idea
Reply With Quote
  #4  
Old 01-17-2011, 12:36 AM
yahooooh yahooooh is offline
 
Join Date: Nov 2009
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 01-17-2011, 11:46 AM
LordOfWAR_PC LordOfWAR_PC is offline
 
Join Date: Jan 2011
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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 01-17-2011, 01:55 PM
LordOfWAR_PC LordOfWAR_PC is offline
 
Join Date: Jan 2011
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated to the 1.2.1 version. All detalis in the first post.
Reply With Quote
  #7  
Old 01-18-2011, 03:18 AM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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, 4 views)
Reply With Quote
  #8  
Old 01-18-2011, 08:14 AM
LordOfWAR_PC LordOfWAR_PC is offline
 
Join Date: Jan 2011
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.
Reply With Quote
  #9  
Old 01-29-2011, 09:04 AM
dormopoco dormopoco is offline
 
Join Date: May 2007
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

where find italy CIDR
Reply With Quote
  #10  
Old 01-29-2011, 08:48 PM
LordOfWAR_PC LordOfWAR_PC is offline
 
Join Date: Jan 2011
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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
Reply


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

Forum Jump


All times are GMT. The time now is 08:46 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08164 seconds
  • Memory Usage 2,325KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (4)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete