PDA

View Full Version : Miscellaneous Hacks - Show hashed IP to find sock puppets


ateesdale
03-05-2011, 10:00 PM
Here is a little mod that I used in my forum. Basically, it takes the IP address for each posts and hashes it so that I can show it to the users of the forum. I hash it as I do not want regular members seeing the actual IP of the person making the post. This allows users to identify sockpuppets and users with multiple registrations.

It is sort of ugly but it works.

1. You need to create a new plugin under AdminCP -> Plugins & Products -> Add New Plugin

Product: vBulletin
Hook Location: posbit_display_start
Title: IP to Hash
Execution Order: Leave as is
Plugin PHP Code:
$md5ip = substr(md5('PUTAUNIQUEVALUEHERE'.$post['ip']),-10);

2. Then you need to add some code to your postbit template. I put mine right under the Quote button for each post. I also limit it's view to certain users.

<if condition="is_member_of($bbuserinfo, 6,7,9)">
<div class="smallfont">$md5ip</div>
</if>

BirdOPrey5
03-06-2011, 07:38 PM
I like the idea :up:

gsmworldone
03-07-2011, 04:48 AM
nice idea, do you have some screenshot? or live demo

Qima
03-07-2011, 06:39 PM
Thanks ,

Ro7 Qatif
05-18-2011, 06:29 AM
nice idea, do you have some screenshot? or live demo

same thing :up: