View Full Version : Redirect Ban
colicab-d
05-11-2003, 10:00 PM
Crafty Banning Hack - v1
By Colicab
For VB 2.2.x (any 2.2. board)
////////////////////////////
Redirect certain user ids to any site you wish.
Note you must replace xx with the user`s id you wish to
redirect.
Note you may also replace ==
with any of the following:
== : Eqeual To
!= : Unequal To
> : Greater than
< : Less than
>= : Greater than and equal to
<= : Less than and equal to
You may also have extra user ids insted of just one
by adding or after xx in the case of using ==
eg : if($bbuserinfo[userid] == 2 or 5)
in this case the users with the ids 2 or 5 would
be redirected.
This is a fun hack for a cruel joke
or maybe you want moderators to be auto
redirected to the moderator panel
its up to you.. if already had some fun
redirecting banned users to porn sites.
if($bbuserinfo[userid] == 2 or 5)
would redirect every user. 'or 5' always evaluates to true.
colicab-d
05-12-2003, 08:57 PM
it will just redirect 2 and 5 think of or as and in this hack :D
Today at 05:57 PM colicab-d said this in Post #3 (https://vborg.vbsupport.ru/showthread.php?postid=394290#post394290)
it will just redirect 2 and 5 think of or as and in this hack :D
lol :knockedout:
PHP evaluates them as separate statements. If you want to ban multiple userids, use
if(in_array($bbuserinfo['userid'], array(1,2,3,4,5,6)))
colicab-d
05-12-2003, 10:02 PM
well im gonna do a version thru the admin panel soon that,ll use and array for it instead.. was really just mucking about and thought id share lol
ethics
05-12-2003, 10:37 PM
Actually, would love to see the full working version, when you can. :)
Talisman
05-12-2003, 11:29 PM
It depends on your host, but redirecting someone to a porn site without their consent could get you shut down if they complain to the right place. So be careful you don't put everything at risk just to get back at someone who's been hassling you.
colicab-d
05-13-2003, 01:06 AM
well its not like your gonna send folk wh arent friend are you? i mean it woul dbe pretty sick to do it to say all of your members bar maybe a view..
Talisman
05-13-2003, 01:13 AM
Nah, not what I meant, colicab-d. I like the hack.
And I might install it if I can think of somewhere annoying to send them.... other than a porn site. That accomplishes the same thing, just without the risk.
vB-Host.com
05-13-2003, 11:54 AM
send them to microsoft ;)
colicab-d
05-13-2003, 07:44 PM
a few good ones are
www.yer-maw.com
www.blankpage.com
www.cheese.com
there's "The Worlds Most Annoying Webpage" where you have to get through 250 alerts, a simple CTRL+ALT+DELETE does it i think but hey its good.
I was the beta tester of this :Rolleyes:... well he got me with it anyway.
here it is;
http://www.mostannoyingwebpage.com/v1/index2.html
Austin Dea
05-14-2003, 08:04 PM
Just redirect to a page that says 'you're banned, have a nice life' or something..
I don't mean to sound like I ma trying to rain on anyone's parade. But not every board admin is able to alter source code just to impose a ban on a certain user.
For any sort of an administrative ban, you should provide a way that the ban could be given to any user through the admin CP and not through code editing.
Dribbles
05-29-2003, 03:29 AM
HAHAH too evil
87GTR
08-19-2003, 08:42 PM
im using 2.2.6
but I cant find
$currentscript = strtolower($HTTP_SERVER_VARS['PHP_SELF']);
in global.php
any ideas?
simple_john
05-08-2005, 06:44 PM
great little addition.. can it be done to an ip address instead of a user? so if the user logs out but rehits the site??
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.