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
Login Restriction - Restrict a user's login to a country or IP address. Details »»
Login Restriction - Restrict a user's login to a country or IP address.
Version: 1.01, by Dave Dave is offline
Developer Last Online: Aug 2021 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.x.x Rating:
Released: 05-29-2014 Last Update: 01-15-2016 Installs: 20
DB Changes Uses Plugins
Re-useable Code  
No support by the author.

Hello,

This plugin will make it possible to restrict the account of a user to a country and/or IP address. This can be a wonderful plugin to protect an administrator or moderator account.

Screenshot


Installation
1) Download the .xml file specified.
2) Import it in the admin control panel.

Usage
Simply go to the users profile in the admincp and look for the login restriction table.
You can restrict a user to an IP address, country or both.

If someone tries to login and the IP address or country doesn't match, it will simply show "the incorrect username/password entered" error message.

Note
Keep in mind that the country resolving might not be 100% accurate since the script relies on the API of telize.com.
Also don't lock yourself out!

Credits
Telize.com its API is being used to get the country off the IP address.


Let me know how it works.

Download Now

File Type: xml product-loginrestriction.xml (8.9 KB, 56 views)

Screenshots

File Type: png Untitled.png (7.6 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 05-31-2014, 04:10 AM
synseal's Avatar
synseal synseal is offline
 
Join Date: Apr 2009
Posts: 334
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wouldn't it be better to just restrict the admin login to a set ip?

With the ability to email a user when someone tries to breach this login page.

Like >> https://vborg.vbsupport.ru/showthrea...light=firewall

Thanks for sharing.
Reply With Quote
  #3  
Old 05-31-2014, 08:00 AM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by synseal View Post
Wouldn't it be better to just restrict the admin login to a set ip?

With the ability to email a user when someone tries to breach this login page.

Like >> https://vborg.vbsupport.ru/showthrea...light=firewall

Thanks for sharing.
Well, I also wanted to be able to restrict normal users.
Reply With Quote
  #4  
Old 06-20-2014, 02:18 AM
JacobSuth JacobSuth is offline
 
Join Date: Feb 2011
Location: Canada
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by synseal View Post
Wouldn't it be better to just restrict the admin login to a set ip?

With the ability to email a user when someone tries to breach this login page.

Like >> https://vborg.vbsupport.ru/showthrea...light=firewall

Thanks for sharing.
I use the adminCP firewall and it only emails one e-mail address, so normally if you have a bunch of administrators it spams your e-mail and you can't really remember all of their IP addresses. So it's not the best thing in the world as it doesn't actually e-mail the user itself and the main admins e-mail, as I wish it would.

So this does provide extra security to limit to a IP or a country. Personally I think you should beable to use IP ranges or multiple IPs that would be my only suggestion.
Reply With Quote
  #5  
Old 08-21-2014, 01:02 AM
Easy5s.net Easy5s.net is offline
 
Join Date: Jun 2011
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can fake ip?
Reply With Quote
  #6  
Old 08-21-2014, 08:27 AM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Easy5s.net View Post
can fake ip?
What do you mean?
It's pretty much impossible to spoof an IP address of a TCP handshake.
Reply With Quote
  #7  
Old 02-24-2015, 06:58 PM
sevenmix's Avatar
sevenmix sevenmix is offline
 
Join Date: Apr 2009
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Really great product thanks btw
Reply With Quote
  #8  
Old 01-07-2016, 01:19 PM
akz645 akz645 is offline
 
Join Date: Jul 2015
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JacobSuth View Post
Personally I think you should beable to use IP ranges or multiple IPs that would be my only suggestion.
I second this.

As I don't just log in from home. I also log in from other places.
Reply With Quote
  #9  
Old 01-16-2016, 03:37 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uploaded a new version which fixes the broken GEO API.
Reply With Quote
  #10  
Old 09-28-2017, 02:03 PM
Inna Inna is offline
 
Join Date: Jul 2016
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Possible to restrict login to specific range IP? It seems this product cannot do this as I've tried (or even maybe I mistakenly had tried)
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 07:14 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.17899 seconds
  • Memory Usage 2,314KB
  • Queries Executed 26 (?)
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
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (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
  • (2)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete