Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
Ban IP's In vBulletin Options Easily Details »»
Ban IP's In vBulletin Options Easily
Version: 1.0.2, by Simon Lloyd Simon Lloyd is offline
Developer Last Online: May 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.8.x Rating:
Released: 08-07-2011 Last Update: 08-08-2011 Installs: 24
Uses Plugins
 
No support by the author.

What this mod does
With this simple mod you can enter a list of IP's that you want to ban (redirect) one per line, when trying to access your site the user of the IP will be redirected to an obscure google page with a 301 permanent redirect.

What this mod won't do
With this mod you cannot ban partial ranged IP's laid out like this 2.23.123 - 2.23.130

How to install
Simply go to Admincp>Manage Products and import product-baniparray.xml

Please mark as installed if you use this!

Version History
v1.0.1
Made it possible to use partial IP addresses
v1.0.2
Added custom redirect message box
Added custom redirect url box
Added IP Range boxes for banning IP's that fall within range
Ranged IP's parsed during checks
vbeta added for test purposes 9/08/2011
Beta has email notification ability, this beta is for those of you that wish to test it and feed back!


Checked range block working only against my IP range, please report any bugs!

Download Now

File Type: xml product-baniparray.xml (6.9 KB, 145 views)
File Type: xml product-baniparraybeta.xml (9.8 KB, 69 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 06-16-2013, 04:58 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no need for .* or .

If you enter 88.123.11 then it will ban:
88.123.11.1
88.123.11.2
88.123.11..3 ......etc

If you enter 88 then it will ban every ip that has 88 in it so in this case you'd need to add an extra qualifier so 88.123 will ban every ip that has that in it, addind a dot5 after it like 88.123. will ensure that only ips's with another paremeter after the las t dot will be banned.

Hope that clears it up for you.
Reply With Quote
  #33  
Old 06-16-2013, 11:37 PM
ram94401 ram94401 is offline
 
Join Date: Dec 2007
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It does. Thanks again.
Reply With Quote
  #34  
Old 07-24-2013, 09:47 AM
sverdios sverdios is offline
 
Join Date: Nov 2011
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any chance, for example, if one user try to logging with a banned ip automatic ban the user?
Reply With Quote
  #35  
Old 07-24-2013, 02:41 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if a user attempts to login with a banned ip either with my system of vbulletins then they wont be able to load the site.
Reply With Quote
  #36  
Old 07-24-2013, 05:43 PM
sverdios sverdios is offline
 
Join Date: Nov 2011
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Simon Lloyd View Post
if a user attempts to login with a banned ip either with my system of vbulletins then they wont be able to load the site.
yes i know, but the user can change you ip and access then, for example I acces to vbulletin from my dedicated server, this ip are banned, but i can access normally from my pc. any chance to move this user to banned group? or some log register what user try to logging from banned ip?
Reply With Quote
  #37  
Old 07-25-2013, 08:49 AM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are talking about 2 different things!
Quote:
Originally Posted by sverdios
any chance to move this user to banned group?
and
Quote:
Originally Posted by sverdios
or some log register what user try to logging from banned ip?
the second part is an easy thing to do, the first is a little harder. If I have time at some point i'll add those things.
Reply With Quote
  #38  
Old 07-31-2013, 05:13 AM
Dan49 Dan49 is offline
 
Join Date: Feb 2012
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Simon,

I installed this mod. Added a few IPs to the list. Then one of my legit users got blocked. I spent a lot of time with him trying to pin point the problem, as his IP is not on the list. I narrowed it down by removing a few IPs from the list at a time, until I found which one affected him.

I had 222. on the list which blocked 203.59.222.162.

What I concluded is that 222. does not only block the beginning numbers, it blocks any occurrence of those numbers in the IP.

Is this what you wanted this mod to do? Let me know if this the case, then I must uninstall it as it's unpredictable which IPs it will ban.
Reply With Quote
  #39  
Old 07-31-2013, 05:16 AM
Dan49 Dan49 is offline
 
Join Date: Feb 2012
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Never mind, I just saw you answered this a few posts above. Looks like I understood correctly. It's too dangerous to put only 3 numbers on the list. But I think I can still make it work, adding at least one more ###. behind it.
Reply With Quote
  #40  
Old 08-04-2013, 02:56 AM
Dan49 Dan49 is offline
 
Join Date: Feb 2012
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Simon,

I want to make sure I'm using block range of IPs feature correctly. If I set
Start IP: 202.46.48.36
End IP: 202.46.63.165

will it block these IPs?
202.46.48.77
202.46.57.138
202.46.62.142
Reply With Quote
  #41  
Old 08-04-2013, 05:31 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To be honest its been a long while since I used or did any development on this mod, my first instinct is to say no because those ip's are fully qualified ip's you'd need to enter them like
202.46.48
202.46.63

I cant remember what instructions I gave in the mod. My wifes due to have a big op so I wont have time to test or look at this for at least a week - sorry!
Reply With Quote
Reply

Thread Tools

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 04:59 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.12853 seconds
  • Memory Usage 2,326KB
  • 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
  • (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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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