![]() |
Ban IP's In vBulletin Options Easily
1 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 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! |
**Reserved**
|
Looks good but not quite what I am looking for. I need to be able to ban IP ranges (as in the other thread), not just complete IPs.
|
Quote:
|
True, but you can also block full IPs with that, too. Plus, it kind of defeats the purpose of my question in the other thread. ;)
|
Ah!, my fault i didn't read the thread fully, and for your question i just read....array of ip's not realising it was for partial or blocks of ip's.
It's going to take quiet a bit i would imagine but i'll look in to it :) |
You should be able to use his outline.
|
You can now use partial ip's, i'm working on an addition where you can block from xx.xx.xxx.xx - xx.xxx.xx.x.
It's 5am here so i guess i'll finish it later today :) |
Another option would be to have a setting for the redirect page so it is configurable. As well as a notification of some sort.
|
Don't want much do you? :) i'll look in to that too, i'm off home to bed in a couple of hours, so i won't start work on it again until around 7:30pm GMT
|
well, you might as well add something to this that would make it a better option to use than the one in vb. ;)
|
Would this work with IPv6 addresses?
|
Here's a little snippet of code for IPv4 addresses that I use in several private mods.
Code:
$ip = explode('.',IPADDRESS); IPv6 is very similar. |
Quote:
Quote:
|
Product update - new enhancements
|
Beta product added for test purposes, it has email notification facility, if you use this version please feed back.
|
Beta re-uploaded due to a typo!
|
Quote:
IPv6 can be done in a similar way, but it uses hexadecimal values and will result in an insanely large number. ;) |
This will also work for IPv4:
Code:
// Checks for valid IP Address since some proxies will send invalid user |
I noticed that I have had a lot of Japanese ips sitting in my "who's online". I found this product and thought it would be a good idea to ban these ips.
I have installed. I re-logged into my forum and still see these ips on my "who's online" list. How do I know if these ips are now banned? Thanks guys |
Lol!, the ban is a redirect, firstly the session timeout set in you vbulletin options has to pass before anyone goes missing off the who's online, secondly the bot/spider/person has to visit another url before they get redirected if their session hasn't timed out.
Give it time and they will disappear :) P>S please mark as installed! |
Sorry. I clearly have the Sunday morning sleepies.
I have marked as installed. Thanks :) |
I remember you helped me with the Quick-Editor and then the Similar thread.. Thank you very much for your help. I wish there was more like you in vBulletin. And I am sure there is. Everyone have been amzingly helpfull to me. (Newbie)
|
VOTED: Excellent, and INSTALLED!
I Forgot something.. I Just Installed this one, I have little question! Do you think that a proxy-Ban, or Proxy Detection option could be added in this product! Or maybe in your next release! Maybe close to the Product called (Proxy to Real IP)...... |
Thats not the intention of this mod, there is a mod that prevents proxy use and there's one that helps display the users real ip (by Paul M) if the proxy provides it, as far as i know this mod doesn't conflict with any of those so you can use it in conjunction. :)
|
Thanks! Installed. How do I verify that this mod is working as intended? I can't block my IP obviously.
|
You can ban your own ip :), when you find it works go to your /includes/config.php and right under <? php add
HTML Code:
define('DISABLE_HOOKS', true); |
Thanks. I used Chrome and Firefox. In Chrome, I went admin panel and banned my IP and kept open admin panel screen. In Firefox, I tested the redirect. It worked ok. Then, I went back to Chrome and removed my IP from ban list. After a minute, I tested in Firefox. I was able to see the forum instead of getting redirected. It worked great! I do not see "Message to Redirected users" though. In fact, that's what I wanted. I do not want to show some courteous message to spammers.
Overall, it worked as advertised! Nominating for the mod of month. Great Job! |
Glad it's what you wanted, check out my other mod https://vborg.vbsupport.ru/showthread.php?t=264932 to keep bad bots away and reduce your bandwidth :)
|
Thanks. Quick question. Under "List IPs" box, instruction says "You may use full or partial IP's in the list". What is the format for partial IP? Should I enter
xx.xx.xx.* or just xx.xx.xx. Thank you. |
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. |
It does. Thanks again.
|
any chance, for example, if one user try to logging with a banned ip automatic ban the user?
|
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.
|
Quote:
|
You are talking about 2 different things!
Quote:
Quote:
|
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. |
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.
|
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 |
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! |
All times are GMT. The time now is 05:50 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|