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)
-   -   Miscellaneous Hacks - Allow registration only from specified CIDR/IP(s) + include exceptions (https://vborg.vbsupport.ru/showthread.php?t=257228)

LordOfWAR_PC 01-15-2011 10:00 PM

Allow registration only from specified CIDR/IP(s) + include exceptions
 
1 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 01-16-2011 06:23 PM

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 01-17-2011 12:25 AM

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

yahooooh 01-17-2011 12:36 AM

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 01-17-2011 11:46 AM

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 01-17-2011 01:55 PM

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

Dr.osamA 01-18-2011 03:18 AM

1 Attachment(s)
Excellent +5 stars
installed

translated to Arabic

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

LordOfWAR_PC 01-18-2011 08:14 AM

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 01-29-2011 09:04 AM

where find italy CIDR

LordOfWAR_PC 01-29-2011 08:48 PM

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


All times are GMT. The time now is 03:08 AM.

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.01064 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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