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

I would only allow ips Italian, tnx a lot! 4 your help.
Reply With Quote
  #13  
Old 01-30-2011, 11:00 AM
LordOfWAR_PC LordOfWAR_PC is offline
 
Join Date: Jan 2011
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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, 11 views)
File Type: php Range_to_CIDR.php (6.9 KB, 7 views)
Reply With Quote
  #14  
Old 01-30-2011, 11:15 AM
dormopoco dormopoco is offline
 
Join Date: May 2007
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tnx man i love u! u save my site!
Reply With Quote
  #15  
Old 01-30-2011, 11:29 AM
LordOfWAR_PC LordOfWAR_PC is offline
 
Join Date: Jan 2011
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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
  #16  
Old 03-02-2011, 12:51 PM
talonmike talonmike is offline
 
Join Date: Sep 2005
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow, this was wath I needed!
Reply With Quote
  #17  
Old 07-16-2011, 12:46 PM
Casmos Casmos is offline
 
Join Date: Mar 2008
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks alot, now lets see if it keeps some forum hackers, away from my forum.
Reply With Quote
  #18  
Old 04-19-2012, 01:15 AM
MacGuyInNC MacGuyInNC is offline
 
Join Date: Feb 2012
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone know if this works on 4.1.12? I'd love to block some problematic networks.

TIA!
Reply With Quote
  #19  
Old 05-25-2012, 07:09 PM
MacGuyInNC MacGuyInNC is offline
 
Join Date: Feb 2012
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Upgraded my site to 4.2.

Anyone try it yet? Confirm that it works?
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 01:46 AM.


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.04390 seconds
  • Memory Usage 2,319KB
  • 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
  • (2)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
  • (9)post_thanks_box
  • (1)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (5)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)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