The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Moderate user if hostaddress = whatever
Ok I've been having a problem with a troll he knows he's being banned, being ignored, etc. So he's using surfola.com's program to hide his IP I'm wanting to know is it possible to make a hack that will either prevent registering or moderate users that come from the a certain host address. Because I know in the (".gethostbyaddr($ip[ipaddress]).") piece it says he's from surfola. It might be helpful in tracking down the real bad trolls.
I've tried pretty much everything else to keep him banned, but so far this is the only way I can think of. |
#2
|
||||
|
||||
You can edit newreply.php and newthread.php and replace this:
Code:
// auto bypass queueing for admins/mods if (ismoderator($foruminfo[forumid])) { $visible=1; } Code:
// auto bypass queueing for admins/mods if (ismoderator($foruminfo[forumid])) { $visible=1; } elseif (whatever) { $visible = 0; } |
#3
|
||||
|
||||
but just curious on the piece that you'd add for say.
if hostaddress contains surfola.com put into query it would be if (gethostbyaddr($ip[ipaddress]=surfola.com) or would you need to add something to say if it contains surfola.com. I'm still better at the ifs and elses stuff. Still learning thewhatnots |
#4
|
||||
|
||||
Code:
if (strstr(gethostbyaddr($ipaddress), 'surfola.com')) { |
#5
|
||||
|
||||
Thanks firefly It works like a charm
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|