vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Who might this New User be? (https://vborg.vbsupport.ru/showthread.php?t=38909)

Logician 05-21-2002 10:00 PM

Who might this New User be?
 
Hiyas,

When a new user registers your board, this hack analyzes his email, password, ip address and isp (ranged ip) against existing board members and produces a sorted list with probabilities about who this new user might be. (See screenshot below). This list will be emailed to you with new user notification mail. (The probabilities can be modified by you so it's you who decide how matched results are sorted and ranked, dont blame me!) ;)

Tested and will work better in relatively smaller boards (less than 3000 members). If you have a small board, this hack may help you a bit to track and pinpoint existing users if they re-register with different usernames. For large boards, IMO it's pointless to track new users anyway..

As far as I know it will work with ANY vbulletin version so feel free to try. Installation is very easy, actually 2 simple steps and will take you 2 minutes to apply..

If they change their both ip, isp, password and email, the hack cant get them, yeah I know! This is the best we can do with computer technologies. If you have higher expectations and demands, you may regard consulting a "Seer".. :p

If you liked this hack, I suggest checking Jawelin's nice Paranoid dupe user buster when moderating Hack too. They make a good couple and I use them both.

Click Install button, if you installed the hack, thank you!

Enjoy! \=^))

Logician

Logician 05-22-2002 09:06 AM

Screenshot:
(This is the part of email you receive when a new user registers)

Lesane 05-22-2002 09:38 AM

Great hack, i will install this one later. Thanks.

Jawelin 05-22-2002 11:18 AM

Very nice idea and implementation.

Many thanks even for such undue greets.... :p
I'll use ASAP.

Just a question: I have enabled moderation, but not email notification to the admin. I would, if some percentage value is overcome, receive that email.
Which variable should I check ? Do you think it should possible ?

I mean, if my $newuseremail is usually empty, i could put at the end of your hack something like:
PHP Code:

    if ($i>1)
      
$newuseremail=$webmasteremail

By now I use the counter of matches, but actually don't like it...
:)

Thanks again.
Bye

MarkG 05-22-2002 11:35 AM

installed!!

awsome stuff! :)

note about installing on 2.0.3: i put the code on register.php just before this
Code:

$DB_site->query("INSERT INTO user (userid,username,password,email,".$newstylefield......

Logician 05-22-2002 01:09 PM

Quote:

Originally posted by Jawelin
I have enabled moderation, but not email notification to the admin. I would, if some percentage value is overcome, receive that email.
Which variable should I check ? Do you think it should possible ?

@Jawelin: To add such a feature, first find the part in the hack code:
PHP Code:

$sorted_matches_pro[$i]=${$result}[probability].".".${$result}[userid]; 

After that add:

PHP Code:

if (${$result}[probability]>X) {$alert_tick=1;} 

Replace X with your probability you want to check.

Now if a user's possibility of being another user is more than X%, then hack will flag the variable $alert_tick and by checking it in register.php, you can make the script send you email notification.
Like in your code:

PHP Code:

if ($alert_tick==1) {$newuseremail='youremail@domain.com';} 

Hope that helps.. :)

@All: You may ignore this message if you dont want to have a feature like Jawelin asked.

MrLister 05-22-2002 01:28 PM

Looks good, I just got what it does :D

Floris 05-22-2002 02:09 PM

This is fun idea!
Good for my paranoid lessons 12step program :D

I will try to install it in the upcomming weekend.

bluecat 05-22-2002 03:06 PM

Excellent. Works perfectly on 2.2.5. :)

inetd 05-23-2002 07:55 PM

Good hack!
I will install later!

Jawelin 05-27-2002 09:42 AM

Quote:

Originally posted by Logician

@Jawelin: To add such a feature, add:
PHP Code:

if (${$result}[probability]>X) {$alert_tick=1;} 

Replace X with your probability you want to check.

Now if a user's possibility of being another user is more than X%, then hack will flag the variable $alert_tick and by checking it in register.php, you can make the script send you email notification.
[...]
Hope that helps.. :)

Thank you very much for this extension.
Till now, I never found users matching more than 50%, and think - for test purposes - i'll try to lower that value.
Thanks again.

Bye

[email protected] vbmenu_register("postmenu_270088", true); 07-07-2002 12:57 AM

Will this work on existing members who have registered or just new members?

Logician 07-07-2002 07:22 AM

Quote:

Originally posted by mark@sb.ws
Will this work on existing members who have registered or just new members?
checks just new members against existing members' data..

FWC 07-07-2002 08:48 AM

Quote:

Originally posted by Logician

checks just new members against existing members' data..

Yes, but it is a very effective troll detector. I have a couple who can't figure out how I get them banned or on moderation before they can even post. :)

NSeXcellent 07-14-2002 04:38 PM

I installed this, and it seems to have worked fine. My first new member to sign up after this is installed, emailed me their information, but for the probability part, all I got was:
WHO MIGHT THIS NEW USER BE?
----------------------------
# | PROBABILITY | USER..| ID.|....EMAIL........|.MATCHES..................
-------------------------------------------------------------------------------------

----------------------------
[email] => indicates user has the same email with this new user
[password] => indicates user has the same password with this new user
[IP] => indicates user has the same IP address with this new user
[ISP] => indicates user is from the same ISP with this new user. That is, their IP range is same. Eg. 195.100.200.XXX etc..

Any idea what I may have forgotten?

Bro_Joey_Gowdy 07-14-2002 04:43 PM

nice hack

Logician 07-14-2002 04:48 PM

Quote:

Originally posted by NSeXcellent
I installed this, and it seems to have worked fine. My first new member to sign up after this is installed, emailed me their information, but for the probability part, all I got was:
WHO MIGHT THIS NEW USER BE?
----------------------------
# | PROBABILITY | USER..| ID.|....EMAIL........|.MATCHES..................
-------------------------------------------------------------------------------------

Any idea what I may have forgotten?

Good news: this means the new user might be nobody! :D

If his ip, email, password, isp does not match that of any existing user, this list will be blank. So everything is ok, this is no bug..

But if you want to second my word, go register yourself as a new user and use your admin password and check what hack will return to you.. ;)

Logician

nemesis01 07-14-2002 05:15 PM

Installed, works perfectly, very useful to me.

Good stuff. :bunny: :bunny: :bunny: :bunny: :banana:

NSeXcellent 07-14-2002 05:29 PM

hahaha... thanks... nice hack!

marc49 07-16-2002 01:54 AM

Quote:

Originally posted by Logician

checks just new members against existing members' data..


Is it possible to even have the ability to check existing members? I realize it would probably have to be a whole seperate hack, but would it be something that would be fairly easy for you guys to do?

By the way, I love this hack, I think it's one of the best on vb.org.

Logician 07-16-2002 09:39 AM

Quote:

Originally posted by marc49
Is it possible to even have the ability to check existing members? I realize it would probably have to be a whole seperate hack, but would it be something that would be fairly easy for you guys to do?

Mark they look same, their algorithm is similiar either but if you want to do a good job, you have to restructure the hack to code your request. Here is a technical info:

In "who might this user be" hack, the hack retrieves the IP address (email and password too) of the new user and searches BOTH the message database and userdatabase to match the IPs (and ISPs). You have only one IP to check against other users IPs, so handling it is easier.

However if you want to check an existing member's IP inside the database, things changes because he might be a dynamic IP owner and an active poster which means he may have tens of different IPs recorded in your database. If you want to do a good analyze as this hack does, you have to take all these IPs one by one and search them inside your database. This can be time consuming if he has too many IPs or if your database is big or your MYSQL server is slow. Moreover this means you have to code this hack quite differently than this hack. So it's not really possible to make a quick adoptation, in the coder view, you have to handle things differently by coding it from the scratch.

I may try working on it sometimes but sorry not soon..

Learner29 08-30-2002 03:31 PM

Logician please contact me via private message.....

I am sending you a big big bar of swiss chocolate...

Logician 09-01-2002 09:56 AM

Quote:

Originally posted by Learner29
Logician please contact me via private message.....

I am sending you a big big bar of swiss chocolate...

Hey I love Swiss chocolate (and Switzerland too)!.. Too bad I'm on a diet :glasses: You'd better eat it for me.. ;)

Glad you liked the hack..

KarateKid 09-01-2002 12:39 PM

great hack, thank you

*install*

Night Owl 10-30-2002 12:50 AM

Is there any way to include the referring site in the email?

Logician 10-30-2002 10:34 AM

Quote:

Originally posted by Night Owl
Is there any way to include the referring site in the email?
if you use $referrername variable in the mail template you get, it should give you the refering username if any..

Kathy 11-17-2002 09:23 PM

I like the idea of this and downloaded it to take a look at the files. It says in your README that it does fine with smallish communities.

What could I do for my large one?

Could I have new registrations check with the banned (or other user group I specify?.... I have an "almost banned" usergroup that has no privileges other than posting...)

Could this hack work if instead of it comparing to all the members (over 21,000 now) could it compare to the few in the banned group and in this special group I created and maybe the option to add additional names we are suspicous of and keeping an eye on?

thanks for your help on if this is tweakable. :-)

Logician 11-17-2002 09:50 PM

Kathy by default the hack is not suggested for large communities for 2 reasons:
1- In large communities with a lot of members hack will match many users with same IP or ISP or password so wouldnt give you a good idea as to whom the new user might be.
2- Hack does not only compare IPs in the user database but also in the post database to give more accurate results and if you have a large database (user or posts or both) it would take a very long time to match new registerar's IP in the database which will result in a slowdown in register process.

So it's not good for you as it is.

But I guess it can be tweaked so that it will only compare IPs of banned members and warn you if a "potential" banned member re-registers or even better put him in a special usergroup (like moderated) if the hack decides new user is likely a "banned member". :glasses:

Bitmap 11-18-2002 06:05 AM

i just installed the hack but i am having a little problem on my testboard (2.2.8).

everything works fine, but when i am finished with registering i get the following error:
Quote:

Warning: Cannot add header information - headers already sent by (output started at /home/websites/test/htdocs/forum/register.php:587) in /home/websites/test/htdocs/forum/admin/functions.php on line 1655

Warning: Cannot add header information - headers already sent by (output started at /home/websites/test/htdocs/forum/register.php:587) in /home/websites/test/htdocs/forum/admin/functions.php on line 1655
i looked up the line and there it says
Code:

    header($cookieheader, false); // force multiple headers of same type
  } else {
    setcookie($name, $value, $expire, $cookiepath, $cookiedomain, $secure);

any ideas?

Logician 11-18-2002 06:50 AM

Quote:

Originally posted by Bitmap
i just installed the hack but i am having a little problem on my testboard (2.2.8).

What's the line (around) 587 in register.php?

Bitmap 11-18-2002 08:46 PM

Code:

if (!strstr(${$degisken}[matches],"[ISP]") AND !strstr(${$degisken}[matches],"[IP]")) {echo strpos(${$degisken}[matches],"[ISP]")."--";${$degisken}[matches].='[ISP]';${$degisken}[probability]+=$email_isp;};
that's the line in register.php

Logician 11-18-2002 10:16 PM

Quote:

Originally posted by Bitmap
Code:

if (!strstr(${$degisken}[matches],"[ISP]") AND !strstr(${$degisken}[matches],"[IP]")) {echo strpos(${$degisken}[matches],"[ISP]")."--";${$degisken}[matches].='[ISP]';${$degisken}[probability]+=$email_isp;};
that's the line in register.php

ok please replace that line as:

PHP Code:

if (!strstr(${$degisken}[matches],"[ISP]") AND !strstr(${$degisken}[matches],"[IP]")) {${$degisken}[matches].='[ISP]';${$degisken}[probability]+=$email_isp;}; 

and tell me if it fixes your problem..

Bitmap 11-19-2002 02:45 AM

thank you :) it works perfect now!

Mr L 11-19-2002 05:05 PM

Looks a great hack, but I am getting the following message after I make the changes...

Parse error: parse error, unexpected T_ELSE in /forums/register.php on line 534

533 }
534 else
535 // this user does not matched before, so let's create a new array for him

I'd be grateful for any help! Thanks!

Mr L 11-19-2002 05:08 PM

Forgot to say, using 2.2.7.

Thanks!

Logician 11-19-2002 05:33 PM

Quote:

Originally posted by HLodder
Looks a great hack, but I am getting the following message after I make the changes...

Parse error: parse error, unexpected T_ELSE in /forums/register.php on line 534

A few hours ago I updated the hack code and it seems that I've missed a { char. I corrected it now.. Please redownload the hack instructions and apply again. (To not to receive the old cached instructions, please make sure you right click the txt file and choose "save")

Mr L 11-19-2002 05:53 PM

Logician,

Many thanks, all is working perfectly now!!!

One of the top quality hacks that I have installed that is actually damn useful. Thanks.

maestrosdelweb 01-07-2003 07:49 PM

I like the hack but my board gets lots of new members daily.

Any chance that the email is generated from a from where I put the user name and the hack will only work for that user?

Best regards

dnd 03-06-2003 11:22 PM

hi

Any update for lage communities?


regards

Quote:

Originally posted by Logician
Kathy by default the hack is not suggested for large communities for 2 reasons:
1- In large communities with a lot of members hack will match many users with same IP or ISP or password so wouldnt give you a good idea as to whom the new user might be.
2- Hack does not only compare IPs in the user database but also in the post database to give more accurate results and if you have a large database (user or posts or both) it would take a very long time to match new registerar's IP in the database which will result in a slowdown in register process.

So it's not good for you as it is.

But I guess it can be tweaked so that it will only compare IPs of banned members and warn you if a "potential" banned member re-registers or even better put him in a special usergroup (like moderated) if the hack decides new user is likely a "banned member". :glasses:


XFLBret 05-04-2003 09:59 PM

hello.

first off. i want to say that this is one of my favorite hacks. as far as administrative hacks, this is by far my favorite.

it worked like a champ on my old host, no complaints at all. but i have moed hosts, and then upgraded my board to 2.3.0, and now I can't get this hack to work the way I want it to.

first off, the email no longer sends me the password for each user. how do i correct that error?

second, the email has a blank line between each line, as if it were separated by a <br> thing or something. I double-checked the template, and it looks fine.

help!


All times are GMT. The time now is 04:46 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01469 seconds
  • Memory Usage 1,850KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (6)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete