View Full Version : Trap Banned Members: They can not logout (VB3)
Logician
03-26-2004, 10:00 PM
I'm releasing this ported version of an old very tiny hack upon request. It is a 1 line hack that prevents banned usergroups (or any other usergroup you want) to log out. Since they can not log out, they can not reregister either.
The hack prevents them to clear the cookies so they are stuck with their banned usernames in the forum. But obviously this applies:
a) If user is a cookie user
b) If he is not able to clear them manually in his computer.
So the hack is effective for novices only. Tested in vB3.0.0, should work in all vb 3.x versions though. Vb2.x version is here (https://vborg.vbsupport.ru/showthread.php?s=&threadid=37549). Click install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=63013) if you use it, thanks!
VB3.5 version is here:
here (https://vborg.vbsupport.ru/showpost.php?p=783226&postcount=70)
Enjoy!
Boofo
03-27-2004, 08:56 AM
Welcome back! I hope this is just the first of many great hacks from you, my friend. Been waiting a long time for you to get back into the old grind with us here. ;)
gmarik
03-27-2004, 09:59 AM
This is really hard - this is something to believe in...
Koutaru
03-27-2004, 10:57 AM
:D Excellent. Thanks Logician!
FleaBag
03-27-2004, 12:44 PM
This is definitely going to be of great use to me. :D
AutomatikStudio
03-27-2004, 02:51 PM
Wow...this solves so many problems on my boards...
wrongful
03-27-2004, 03:42 PM
thank you
Zachariah
03-27-2004, 03:54 PM
nice
Merjawy
03-27-2004, 05:25 PM
Nice hack thnx,
as for the user must be using cookies, thats easy.. you just make that group use cookies which is simple in vB3 by global edit command :)
Charlie Argueta
03-27-2004, 05:33 PM
I was looking for something so evil and easy as well :D
See Ya
Mr. Brian
03-27-2004, 05:42 PM
One of my idol finally back in action!
???`S?LV?R???`
03-27-2004, 05:59 PM
very nice idea (clicks install)
Zelda-King
03-27-2004, 07:37 PM
Thanks! Been awaiting this one.
datainternet
03-28-2004, 08:39 AM
Thx dude for this great hack!!!
MFG datainternet
bluecat
03-28-2004, 08:26 PM
Thank you.
bluecat
03-28-2004, 10:25 PM
I found myself (as administrator) being unable to log out, even though the XX are replaced with the id's of banned and banned by mods. This happen to anyone else?
Wouldn't this be "not nice" for those people using public computers (eg at a library)?
TRStealth
03-29-2004, 03:13 AM
Well, if they're banned, what difference would it make? The account would basically be useless.
True, the banned account is useless, but it also means that anyone else using that specific computer/browser will be unable to log in. For example, if I'm using a shared computer and my account gets banned on your forums, anyone else who will be using that computer to access your forums will not be able to log in (unless the cookies got wiped).
Charlie Argueta
03-30-2004, 12:37 PM
In the last days I have been thinking in a evil modification :devious: is it possible to add some adons to this hack.
For example is it possible to at the same time block the access to the new threads automaticly when you using this hack, also specificate the vissible parts, as Terms of Use :rolleyes:
See Ya
GamerzWorld
03-30-2004, 12:48 PM
Perfect, works great :) Ty
JoergZ
04-03-2004, 07:25 PM
I had this hack already in my vB2 and now in vB3. *installed*
But I have a little suggestion for an improvement: To not insert hard-coded the usergroupid in the PHP, how about that:
if ($permissions['genericoptions'] & ISBANNEDGROUP)
I have tested it and works fine for me in vB3 Gold.
Regards
J?rg
Sin City
04-05-2004, 07:25 PM
wow... awesome hack man... thank you :)
RugBurn
04-05-2004, 09:48 PM
Thank you sir.
MentaL
04-10-2004, 07:11 PM
gr8 ;)
Massacure
04-14-2004, 03:14 AM
So, what happens if they are banned while they are logged out? If they are logged out will it allow them to log in before banning them?
rinkrat
04-14-2004, 04:13 AM
Edit file "login.php", find line:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// clear all cookies beginning with COOKIE_PREFIX
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
That does not exist in GOLD login.php
Logician
04-14-2004, 05:43 AM
So, what happens if they are banned while they are logged out? If they are logged out will it allow them to log in before banning them?
yes they can log in ok.
That does not exist in GOLD login.php
It does. Check carefully around lines 50-55.
Bulent Tekcan
04-15-2004, 01:59 PM
Dear JoergZ
Can you explain me ?
I had this hack already in my vB2 and now in vB3. *installed*
But I have a little suggestion for an improvement: To not insert hard-coded the usergroupid in the PHP, how about that:
if ($permissions['genericoptions'] & ISBANNEDGROUP)
I have tested it and works fine for me in vB3 Gold.
Regards
J?rg
Logician
04-15-2004, 04:40 PM
Dear JoergZ
How can I add this line ?
huh?
Skyline_GT
04-26-2004, 09:53 PM
Good stuff.
bluecat
04-27-2004, 10:46 AM
Nice hack thnx,
as for the user must be using cookies, thats easy.. you just make that group use cookies which is simple in vB3 by global edit command :)
Hi. I know to go into phrase manager, but you can explain how to do this exactly? Do I have to add or edit an existing phrase, if so, what exactly? Thanks.
hollyboy
05-04-2004, 09:10 PM
nice. I've clicked on install
hollyboy
05-05-2004, 06:01 AM
I get this error
Parse error: parse error in /home/interfan/public_html/forum/login.php on line 63
My line 63 is:
if ($bbuserinfo['usergroupid']==15 {print_no_permission(); exit;}
Logician
05-05-2004, 06:35 AM
I get this error
Parse error: parse error in /home/interfan/public_html/forum/login.php on line 63
My line 63 is:
if ($bbuserinfo['usergroupid']==15 {print_no_permission(); exit;}
if ($bbuserinfo['usergroupid']==15) {print_no_permission(); exit;}
0zone
05-30-2004, 11:05 PM
Nice hack. :)
Thank you for posting this one.
[clicks install]
Flow Fusion
06-05-2004, 01:56 PM
Thank You For This!
Cold Steel
06-08-2004, 06:22 PM
/me installs.
dutchbb
06-12-2004, 12:16 PM
Parse error: parse error in /home/httpd/vhosts/dutchbodybuilding.com/httpdocs/forum/login.php on line 58
if ($bbuserinfo['usergroupid']==9) OR $bbuserinfo['usergroupid']==11) {print_no_permission(); exit;}
SOLVED!!
should be
if ($bbuserinfo['usergroupid']==9 OR $bbuserinfo['usergroupid']==11) {print_no_permission(); exit;}
Great hack logician :D
sv1cec
07-01-2004, 06:50 AM
Nice hack thnx,
as for the user must be using cookies, thats easy.. you just make that group use cookies which is simple in vB3 by global edit command :)
Can you please elaborate on that? I am not sure I know how to set it up.
Tnx
aranthorn
07-09-2004, 05:01 PM
Nice hack, just had to use it.
Blam Forumz
08-19-2004, 07:13 AM
/me installs and drools
roundhost
08-19-2004, 10:11 AM
fantastic, original idea!
/me clicks install
lifesourcerec
08-26-2004, 03:31 PM
seems no one can logout, not just banned users. everything is installed correctly.
Logician
08-26-2004, 04:21 PM
seems no one can logout, not just banned users. everything is installed correctly.
make sure you applied the code as "($bbuserinfo['usergroupid']==XX)" not "($bbuserinfo['usergroupid']=XX)" (and to the correct place)
lifesourcerec
08-26-2004, 04:58 PM
make sure you applied the code as "($bbuserinfo['usergroupid']==XX)" not "($bbuserinfo['usergroupid']=XX)" (and to the correct place)
This is the line added:
// Logician Hack : Banned users can not logout
if ($bbuserinfo['usergroupid']==10) {print_no_permission(); exit;}
// Logician Hack : Banned users can not logout
Logician
08-26-2004, 05:03 PM
This is the line added:
If you applied it to the correct place, people except usergroup 10 should log out fine.
lifesourcerec
08-26-2004, 06:37 PM
Keep getting this:
An error occurred while attempting to log you out. Click here to log out.
Logician
08-26-2004, 06:45 PM
I don't think this is related to the hack. Remove it and probably you'll still get it.
lifesourcerec
08-26-2004, 07:07 PM
I'll try it and let you know. I'll just comment it out.
sv1cec
08-27-2004, 10:23 AM
Keep getting this:
This error message, is usually shown if you are in the forums as a simple user (like when you are testing the hack) and at the same time, you use another window to change something in the AdminCP, as the administrator. vBulletin gets mixed up and shows that message.
Rgds
integra99
08-27-2004, 10:47 AM
This error message, is usually shown if you are in the forums as a simple user (like when you are testing the hack) and at the same time, you use another window to change something in the AdminCP, as the administrator. vBulletin gets mixed up and shows that message.
Rgds
Also, VB changed the way users logout I believe in one of the RC's. The originally just did a /login.php?do=logout and since have updated it to /login.php?do=logout&u=$bbuserinfo[userid]. Make sure to check your templates, or revert them if necessary.
The Coldwood
08-27-2004, 10:58 PM
I'm releasing this ported version of an old very tiny hack upon request. It is a 1 line hack that prevents banned usergroups (or any other usergroup you want) to log out. Since they can not log out, they can not reregister either.
The hack prevents them to clear the cookies so they are stuck with their banned usernames in the forum. But obviously this applies:
a) If user is a cookie user
b) If he is not able to clear them manually in his computer.
So the hack is effective for novices only. Tested in vB3.0.0, should work in all vb 3.x versions though. Vb2.x version is here (https://vborg.vbsupport.ru/showthread.php?s=&threadid=37549). Click install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=63013) if you use it, thanks!
Enjoy!
You are a modern-day genius!
lifesourcerec
08-28-2004, 08:21 PM
Also, VB changed the way users logout I believe in one of the RC's. The originally just did a /login.php?do=logout and since have updated it to /login.php?do=logout&u=$bbuserinfo[userid]. Make sure to check your templates, or revert them if necessary.
So, you mean, change this:
login.php?$session[sessionurl]do=logout
to this:
login.php?$session[sessionurl]do=logout&u=$bbuserinfo[userid]
?
SamirDarji
12-15-2004, 02:50 PM
Anyone tried this on 3.0.3? I'm thinking of using it in conjunction with the Advanced Warning System (https://vborg.vbsupport.ru/showthread.php?t=71992&goto=newpost) hack.
AlphaWolf
12-18-2004, 01:26 PM
thx
-installed
MajorFm.com
12-31-2004, 03:40 PM
nice mini hack!
bulbasnore
02-27-2005, 01:01 PM
Any way to clear the login in special cases (like banning the user because the screen name is not acceptable)? Some people we want to log back in under a different name.
Any way to clear the login in special cases (like banning the user because the screen name is not acceptable)? Some people we want to log back in under a different name.
Banning them to a usergroup other than 10 would do the trick.
SmartGnome
03-15-2005, 06:54 AM
Tnx Logician for the hack. I used the old one vor vb2 and totaly overlooked this one :shame
One $ question..... "How can I global edit the user cookie usage" ?
Tnx
Logician
03-17-2005, 07:17 AM
Tnx Logician for the hack. I used the old one vor vb2 and totaly overlooked this one :shame
One $ question..... "How can I global edit the user cookie usage" ?
Sorry I didn't understand the question?
vulture
03-30-2005, 12:34 PM
Great little hack. Installed on 3.0.7 fine.
The Piper
04-21-2005, 10:10 AM
Just installed on 3.0.7, tested, and works wonders. Thanks, Logician! Yet another great hack by you... :D
DavidN
04-29-2005, 08:52 PM
Installed ;)
Bulent Tekcan
09-29-2005, 11:04 PM
Is it available for 3.5.0 ?
Logician
09-30-2005, 09:32 AM
I didn't port it to vb3.5, but I don't know if it is worth porting. Because in 3.5, the users can't see log out link when they are banned. Well they can still log out if they know the URL by memory but if they are that clever, I think they can think of clearing the cookies manually to bypass this hack either. Don't you think?
Bulent Tekcan
10-01-2005, 06:45 AM
Yes basicly cannot see this link,but many vB forums everyhere :) Your hack is easy but strong,becasuse maybe %10 users known clear cookies manualy,when I use this hack banned member hang on forum,very simple but good :) If it is available I think many admin pleasure for you.
Thanks
Logician
10-01-2005, 06:51 AM
Yes basicly cannot see this link,but many vB forums everyhere :) Your hack is easy but strong,becasuse maybe %10 users known clear cookies manualy,when I use this hack banned member hang on forum,very simple but good :) If it is available I think many admin pleasure for you.
Thanks
ok I'll port it.. np..
Logician
10-01-2005, 06:55 AM
ok took 2 min. to port lol. Here you go, VB3.5 version: ;)
Bulent Tekcan
10-01-2005, 08:33 AM
Great :) thanks for that reply..
Cheers
RaZor Edge
08-09-2006, 01:43 PM
ok took 2 min. to port lol. Here you go, VB3.5 version: ;)
For those interrested: This work as well for 3.6.0 Gold. (use the instruction for 3.5)
https://vborg.vbsupport.ru/showpost.php?p=783226&postcount=70
bulbasnore
09-15-2007, 04:59 PM
Sigh. Marked uninstalled. I can no longer maintain it as a code edit. Would love this as a MOD, if that were possible.
solboy
03-03-2009, 06:42 PM
Is there a 3.8.1 plugin for this?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.