Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-25-2015, 06:38 PM
XYZ500 XYZ500 is offline
 
Join Date: Aug 2014
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default "Search IP Addresses" showing dozens of users on the same IPs

Something is wrong for quite a while now. "Search IP Addresses" doesn't seem to be working well. It shows dozens of users on the same IP address some times. It can't be possible. I used to use this function to find out multiple account users, but I can't anymore because most of the time when I run the search now, dozens of users show up. For example, I just ran search for admin's IP addresses and depth to search was 2. About 60-70 users showed up. A couple of dozen IPs showed up which makes sense because I have a dynamic IP but 60-70 users showing up does not make sense. Some of these users I personally know and I know they do not live in the same country as me so its just not possible that somehow the same IP address was given to both of us at some point in time by the ISP.

Anyone knows what's going on and how I can fix it?
Reply With Quote
  #2  
Old 09-25-2015, 07:21 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you using Cloudflare/Incapsula or an alternative to that?
They proxify the request so the real IP address of the user is stored in a different header.

https://support.cloudflare.com/hc/en...ith-vBulletin-
Reply With Quote
  #3  
Old 09-25-2015, 07:35 PM
XYZ500 XYZ500 is offline
 
Join Date: Aug 2014
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave View Post
Are you using Cloudflare/Incapsula or an alternative to that?
They proxify the request so the real IP address of the user is stored in a different header.

https://support.cloudflare.com/hc/en...ith-vBulletin-
Yes, using Cloudflare. I think this issue started since we started using Cloudflare on the site.
Reply With Quote
  #4  
Old 09-25-2015, 07:41 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then the link I posted should explain how to fix it.

You can also add the following to your config.php file:
PHP Code:
$config['Misc']['proxyipheader'] = 'HTTP_CF_CONNECTING_IP'
or
PHP Code:
$_SERVER['REMOTE_ADDR'] = (isset($_SERVER['HTTP_CF_CONNECTING_IP']) ? $_SERVER['HTTP_CF_CONNECTING_IP'] : $_SERVER['REMOTE_ADDR']); 
I would see if the first option works first, if not, try the link I sent you.
Reply With Quote
2 благодарности(ей) от:
MarkFL, ozzy47
  #5  
Old 09-25-2015, 08:03 PM
XYZ500 XYZ500 is offline
 
Join Date: Aug 2014
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave View Post
Then the link I posted should explain how to fix it.

You can also add the following to your config.php file:
PHP Code:
$config['Misc']['proxyipheader'] = 'HTTP_CF_CONNECTING_IP'
or
PHP Code:
$_SERVER['REMOTE_ADDR'] = (isset($_SERVER['HTTP_CF_CONNECTING_IP']) ? $_SERVER['HTTP_CF_CONNECTING_IP'] : $_SERVER['REMOTE_ADDR']); 
I would see if the first option works first, if not, try the link I sent you.
Installed it. http://prntscr.com/8khgeu
Not sure if its working correctly.
Installed the mod that was mentioned on the Cloudflare link you posted above.
Checked admin's account again from Search IP addresses and still see the same result. For some reason, its not working.

Gonna try adding this code that you posted and see if it works then.

--------------- Added [DATE]1443218876[/DATE] at [TIME]1443218876[/TIME] ---------------

Quote:
Originally Posted by Dave View Post
Then the link I posted should explain how to fix it.

You can also add the following to your config.php file:
PHP Code:
$config['Misc']['proxyipheader'] = 'HTTP_CF_CONNECTING_IP'
or
PHP Code:
$_SERVER['REMOTE_ADDR'] = (isset($_SERVER['HTTP_CF_CONNECTING_IP']) ? $_SERVER['HTTP_CF_CONNECTING_IP'] : $_SERVER['REMOTE_ADDR']); 
I would see if the first option works first, if not, try the link I sent you.
Can't find this code in the config file.
Reply With Quote
  #6  
Old 09-25-2015, 08:17 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It will only start logging the real IP from that point on, it can not convert the currently logged IP's back to the real IP of the user.

The code I gave you should be added to the bottom of your config file.
Reply With Quote
  #7  
Old 09-25-2015, 09:56 PM
XYZ500 XYZ500 is offline
 
Join Date: Aug 2014
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave View Post
It will only start logging the real IP from that point on, it can not convert the currently logged IP's back to the real IP of the user.

The code I gave you should be added to the bottom of your config file.
Oh sorry I thought I had to edit and replace.

You pasted two codes. Which code should I add in my config file?

This is the last part of the config file. Where should I paste the code?

Code:
// ****** The following options are only needed in special cases ******

	//	****** MySQLI OPTIONS *****
	// When using MySQL 4.1+, MySQLi should be used to connect to the database.
	// If you need to set the default connection charset because your database
	// is using a charset other than latin1, you can set the charset here.
	// If you don't set the charset to be the same as your database, you
	// may receive collation errors.  Ignore this setting unless you
	// are sure you need to use it.
// $config['Mysqli']['charset'] = 'utf8';

	//	Optionally, PHP can be instructed to set connection parameters by reading from the
	//	file named in 'ini_file'. Please use a full path to the file.
	//	Example:
	//	$config['Mysqli']['ini_file'] = 'c:\program files\MySQL\MySQL Server 4.1\my.ini';
$config['Mysqli']['ini_file'] = '';

// Image Processing Options
	// Images that exceed either dimension below will not be resized by vBulletin. If you need to resize larger images, alter these settings.
$config['Misc']['maxwidth'] = 2592;
$config['Misc']['maxheight'] = 1944;

/*======================================================================*\
|| ####################################################################
|| # Downloaded: 17:20, Sat Jul 23rd 2011
|| # CVS: $RCSfile$ - $Revision: 39199 $
|| ####################################################################
\*======================================================================*/
Reply With Quote
  #8  
Old 09-26-2015, 06:24 AM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can just put it under the last option. ($config['Misc']['maxheight'])
Reply With Quote
Благодарность от:
winky8300
  #9  
Old 09-27-2015, 07:16 AM
winky8300 winky8300 is offline
 
Join Date: May 2008
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello

I am under cloudflare and I have the same problem of IP that are the same, I tried what you suggested but by editing the config.php file by adding the code (I tried 2) my forum hangs, by editing the same file as the class_core.php suggests the cloudflare support, forum crashes, I had to recover the files without modifications
someone has another solution
thank you a lot
Reply With Quote
  #10  
Old 10-02-2015, 09:52 AM
XYZ500 XYZ500 is offline
 
Join Date: Aug 2014
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its been about a week since I made these changes. How to check now if they are actually working and correct IPs are being recorded?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:35 AM.


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.04302 seconds
  • Memory Usage 2,280KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (6)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (3)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete