View Full Version : [HowTo] Store USERAGENT and ALTIP in posts
Floris
01-04-2004, 10:00 PM
/*
[HowTo] Store USERAGENT and ALTIP in posts
# version
version 1.1 for vBulletin version 3.0.0 Release Candidate 1
# author
by floris (http://www.vbulletin.nl/ (http://www.vbulletin.nl/))
# credits
Thank you Kier for pointing me into the right direction
# description
This source code modification will store the
browser USERAGENT string and the ALT IP (behind proxy)
with each post made.Users with permission to view
the IP in a post, will now also see this string
# disclaimer
Nobody has permission to distribute or translate
this source code modification
*/
dede1
01-05-2004, 04:17 PM
Thanks very good
FASherman
01-05-2004, 04:40 PM
Regarding your signature:
"i have been contacted 500 times before by vbulletin-fr.com staff members; the answer after 2 years is still: NO ( YOU DO NOT HAVE PERMISSION TO TRANSLATE MY WORK : STOP BOTHERING ME )"
If everyone writing hacks takes the time to learn about a use the phrasing system, doesn't this become a non-issue?
Essentially, all one needs to do is translate the messages a hack generates within te phrasing system, leaving the hack itself alone.
Rapid Gaming
01-05-2004, 05:07 PM
Nice hack, floris.
Frugal
01-05-2004, 09:18 PM
Very usefull hack, now all we need is for the banning option to use the real IP rather than the proxy IP and we are sorted. This way a banned user won't be able to jump from proxy to proxy to avoid the ban. Still won't stop people on dynamic IP's but that's when abuse@isp comes in handy :D
Frugal
Floris
01-05-2004, 10:25 PM
If you ban a user, you ban their account, not their IP address.
You have to manually add their IP address into the user banning options ; options from vb options from the admin control panel in order to have that effect.
Very usefull hack, now all we need is for the banning option to use the real IP rather than the proxy IP and we are sorted. This way a banned user won't be able to jump from proxy to proxy to avoid the ban. Still won't stop people on dynamic IP's but that's when abuse@isp comes in handy :D
Frugal
lol! you're right, that DOES come in handy!
good hack man, I'll definetily be using this one
* MGM is very conciouss of security
* MGM clicks Install
MGM out
Frugal
01-06-2004, 10:34 PM
If you ban a user, you ban their account, not their IP address.
You have to manually add their IP address into the user banning options ; options from vb options from the admin control panel in order to have that effect.
Ok let me rephrase it. Without the hack you just get to see the proxy IP. You then put that IP into the user banning options and the user moves on to a new proxy and can still access the site. Now I'm assuming that your hack allows us to see both the proxy IP and the real IP. So now we have the real IP and can put it in the user banning options BUT when the user connects to the site vB is looking at the proxy IP not the real IP so even though you have banned their real IP they can still access the site, open a new account and continue to be a pain.
As well as the admin being able to view the IP and Alt IP, it would be even more usefull if the user banning options could use the real IP instead of (or as well as) the proxy IP. That way when you ban a users real IP he can't jump on to a new proxy and open a new account. This is a mod I have been desperate for for a very long time. If your mod does also extend to the user banning options then I will be willing to have your babies (figuratively speaking :D)
Frugal
neocorteqz
05-07-2004, 07:24 AM
Is anyone using this on vB3.0.1 ??
neocorteqz
05-07-2004, 10:10 PM
Is anyone using this on vB3.0.1 ??
Ok, working fine for 3.0.1. :)
neocorteqz
05-09-2004, 05:45 AM
heh. just missing something in the code. for the postbit_ip template
this code
<if condition="$show['ip']">
$vbphrase[ip]: $post[ip]
<else />
<a href="postings.php?$session[sessionurl]do=getip&p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]" title=" IP: $post[ip]
Alt IP: $post[altip]
Agent: $post[useragent] " border="0" />
</if>
is missing a </a>
should be
<if condition="$show['ip']">
$vbphrase[ip]: $post[ip]
<else />
<a href="postings.php?$session[sessionurl]do=getip&p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" alt="$vbphrase[ip]" title=" IP: $post[ip]
Alt IP: $post[altip]
Agent: $post[useragent] " border="0" /></a>
</if>
Nothing major, just cased the Img to have an underline underneath it. :)
pablo
05-11-2004, 05:38 PM
cheers floris ,
how about getting this for WOL too ?
I've recently had a few trolls using a college proxy, your hack helped me catch them ! :D
Aurous
05-13-2004, 03:03 AM
Is it possible to store the ALT IP when user logs in? That way I will have the ALT IP of all users even if they dont post a message. Can someone please direct me on how to work around with this?
ZeroZone
05-14-2004, 08:21 PM
Could you please add an option in the "Search IP Address" that allows admins search for ALT IP?
Jujimufu
05-14-2004, 10:48 PM
Whoo, I guess I am good at following instructions / The hack works great! Thanks a lot Floris. :D
ethics
05-16-2004, 01:28 AM
[QUOTE=floris]/*
[font=Courier New][HowTo] Store USERAGENT and ALTIP in posts
# version
version 1.1 for vBulletin version 3.0.0 Release Candidate 1
Not doing anything for the anonymizer. Lists it as a regular IP.
Absolutely flawless install on 3.0.1.
Easy to follow instructions, not one 'line not found error' in Editplus.
/me clicks install
We have a troll jumping from proxy to proxy. We know it is him because he creates new accounts and the username always has a sig string in it. I see how this hack could help people who are using unrelated names for new accounts. But we know who our guy is. We can't just keep banning proxy ip's. I already tried miserable user on him. He just (I assume) deleted his cookies and created another new account. Banning free email addies is not an option. Any ideas?
Adding a field to the post table. Expensive. I wish there was another way to do this.
Captain Nemo
05-18-2005, 11:46 PM
It work! Thanks!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.