vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=268147

Ban IP's In vBulletin Options Easily
by Simon Lloyd
08 Aug 2011 01:52

2 Attachment(s)
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
vbetaadded 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!

bosanci28 08 Aug 2011 03:37

well when i enable in 4.1.5 i get this error:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Simon Lloyd 08 Aug 2011 03:54

When you enabled it did you have any ip's in the list? if not it will produce an error.

bosanci28 08 Aug 2011 05:32

yap,that fixed it.

now let say i ban someones ip,and then i will erase his account,what will happen then?
can he register again or?

thanks friend.

Simon Lloyd 08 Aug 2011 17:46

Quote:

Originally Posted by bosanci28 (Post 2230770)
yap,that fixed it.

now let say i ban someones ip,and then i will erase his account,what will happen then?
can he register again or?

thanks friend.

No not with the same IP, if they use the same IP they will never get to see your site again only the redirect site. There will be further enhancements coming soon with this mod :)

FReeSTER 08 Aug 2011 19:12

Quote:

Originally Posted by Simon Lloyd (Post 2230955)
No not with the same IP, if they use the same IP they will never get to see your site again only the redirect site. There will be further enhancements coming soon with this mod :)

Good stuff, I will tag for later use. Cant wait for more options. lol

DonosOdD 08 Aug 2011 19:45

I can see this is good work in progress. Tagged for later.

steve1966 08 Aug 2011 20:35

Hi thank you but where do i add the isp in the usual banning options page?

Simon Lloyd 08 Aug 2011 23:32

If you mean in my mod then it's self explanatory. This mod does not interact with or affect vb's built in banning options page.

Simon Lloyd 08 Aug 2011 23:45

Product updated - new enhancements!

Boofo 08 Aug 2011 23:49

Looks good. How about an email notification on select blocked IPs?

Simon Lloyd 08 Aug 2011 23:54

Lol, you haven't marked this as installed!, i can do that but lets see how the mod floats for now before i go messing around with it, if everyone is happy over the next week then i'll add either emailing, creating a thread or writing to a log on your server.

Simon Lloyd 08 Aug 2011 23:55

To be honest the log is probably the better way to go or you could get thousands of emails or threads created!

Boofo 09 Aug 2011 00:13

There, I marked it as installed even though I have not installed it yet. The email option would work best for me, but only for those IPs I designate, not for all of them in the setting.

Simon Lloyd 09 Aug 2011 00:18

Well thats probably going to be an add on then rather than a mod change as i think you are talking about not having emails from the blocked range and not having emails from those sigularly blocked, you want to be able to have a section where you enter IP's and emails sent to you if they access your site?


All times are GMT. The time now is 16:48.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.