vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - Proxy to Real IP Conversion (https://vborg.vbsupport.ru/showthread.php?t=231873)

vivapotenza 03-28-2013 06:24 PM

quick question Paul, im unsure if I've got this working ok.

If this is installed ok (ive edited the core file, and installed it successfully), should i see 4 options instead of 2 when I click to see someones IP address? At the minute I still only see 2, but my understanding is i should now see 4, but two will be blank if the IP address is not transmitted through the proxy?

Paul M 03-29-2013 01:53 AM

No, you will only see four if a proxy was used and detected.

bbmisc 03-29-2013 06:59 PM

hey installed this for 4.2 and followed the instructions correctly i believe, however iam still only getting Cloudflare post IP's and not the real Ip's. any ideas? thank you

toon79 04-10-2013 12:23 PM

Tried installing this to fix my issue here: https://vborg.vbsupport.ru/showthread.php?p=2415510

When I view the people online they are all still sharing the Google IP address. Could I have done something wrong?

bfdzio 04-11-2013 12:56 AM

Seconding on the Google Pagespeed thing.

I installed Pagespeed yesterday, today a ton of people getting logged out. I have installed this and applied the fix above....but I still only see google IP's.

edit: looks like it worked...just had not heard from members. My logins log started showing different IP's right when I uploaded the updated class_core.php, but the IP button still shows the google. No big deal.

smirkley 04-11-2013 02:51 AM

Paul,... I have this installed.

Question is, does this work for tor connections?

I have a member that has shown it not to detect tor connections as proxy at all.

Maybe because of the mechanism used. I dunno.

muimui 04-11-2013 06:09 AM

paul,i use china proxy.but real ip not detect.its still work at 4.2?

toon79 04-11-2013 06:45 AM

Quote:

Originally Posted by bfdzio (Post 2415651)
Seconding on the Google Pagespeed thing.

I installed Pagespeed yesterday, today a ton of people getting logged out. I have installed this and applied the fix above....but I still only see google IP's.


edit: looks like it worked...just had not heard from members. My logins log started showing different IP's right when I uploaded the updated class_core.php, but the IP button still shows the google. No big deal.

How did you get this to work? I can't even see the IP button on my forum?

toon79 04-11-2013 07:23 AM

Quote:

Originally Posted by Cybex (Post 2381859)
We fixed it ourselves by editing the class_core.php bit:

Code:

// Detect ALL.
      if ($registry->ipaddress == $registry->alt_ip)
      {
          define('PROXYIP','');
      }
      else
      {
          $proxy = true;
          define('PROXYIP',$registry->ipaddress);
      }
     
      if ($proxy)
      {
          define('ALT_IP', $this->ipaddress);
          define('IPADDRESS', $_SERVER['HTTP_X_FORWARDED_FOR']);
      }
      else
      {
          define('IPADDRESS', $_SERVER['HTTP_X_FORWARDED_FOR']);
          define('ALT_IP', $this->alt_ip);
      }

Now the proxy details aren't written properly, but that's not that important for me. At least I see the real IP addresses now.

Think this has worked for me. Thanks

final kaoss 04-16-2013 03:31 PM

Here Paul, I helped you with your image a bit. From 133 to 119 bytes.

Other than that thanks for the mod, I'm trying it right now as I'm using google PSS and it is referring all of google's proxys instead of the true members ip addresses.


All times are GMT. The time now is 01:14 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.01399 seconds
  • Memory Usage 1,741KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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