![]() |
IP ban from registration only
The problem with IP bans is of course their tendency to lock out innocent posters with the same ISP... or in some cases, even innocent posters using the same computer as the guilty. For my purposes, I prefer to have IP bans only block registrations, and not block people from viewing/posting -- if I didn't want someone posting, I'd have banned their username in the normal way already. By having it only block registrations I merely lose a few potential new people who could've otherwise registered, but don't have the more serious problem of locking out valued existing posters and making them think they've done something bad.
This can be done with a couple very minor file edits: Open includes/functions.php and find Code:
function verify_ip_ban() Code:
function verify_ip_ban($registering = 'no') Code:
global $vboptions, $session; Code:
global $vboptions, $session; Code:
if (empty($_REQUEST['do']) AND empty($_REQUEST['a'])) Code:
verify_ip_ban('yes'); |
Nice, I'll add this. :)
|
Thank you!!!
|
Thank you Hoth!
This is just the hack that I needed. My site was being used as a general chat by a group that worked at the same place as a valued forum member. This way, I can ban them and keep him! |
This looks good but can you tell me if it still will prevent people from registering from the big ISPs like AOL, Juno, etc?
|
Definately trying this one :)
|
Could this be modified to not allow duplicate registrations per IP address? I have had a problem with members creating multiple accounts lately. :( I'm sure others have this same problem too..
|
I urgently need this for vB 3.5.0 RC2. Would anyone port this for me, I would be very appreciative.
|
well when u're use proxies, you still could register, i think you should fix it or update it, anyway this is cool hack
|
All times are GMT. The time now is 08:39 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|