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)

mat8861 10-19-2012 01:28 PM

would you please post (or pm) an ip that I can test to make sure your mod is working? Is "TOR" network detected ? Thanks for your nice mods !

Cybex 11-17-2012 11:22 AM

Dear Paul M,

Today I installed Google's PageSpeed Service (not mod_pagespeed) which is an CDN just like CloudFlare. According to this FAQ the service is sending real IP headers: https://developers.google.com/speed/...s/faq#clientip.

I edited the class_core.php file correctly and installed the mod. When I create a new post on my forum, it still shows the IP address of Google's Proxy servers. How can I troubleshoot this?

Code:

The IP Address is: 74.125.17.223
The host name is: 74.125.17.223

I am using vBulletin 4.2 patch level 2. My forum is located at http://www.osx86.net.

Cybex 11-17-2012 11:53 AM

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.

hsoen 12-15-2012 05:52 AM

Seem like it does not work.

vBulletin Message only show:

The IP Address is:
The host name is:


Which is not the same as shown in the screen shot attachment of this mod.

The Real IP Address is:
The Real IP Host is:
The Proxy Server IP Address is:
The Proxy Host is:


Any advise? Thanks.

togotutor 12-26-2012 01:32 AM

Let me give it a try..

Quijar Haderak 01-24-2013 12:08 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.

Thank for this, i hope Paul M fix it in next release or anyone make a mod for working only vBulletin + Google Pagespeed Service...

temsamane 02-15-2013 11:06 PM

i am using google pagespeed service, and the fix of cybex is not working for me. Is there another solution?

GamerPerfection 02-28-2013 12:12 PM

I am going to try this and do what Cybex said because I started using Google PageSpeed a few days ago and only just realised that everyone is coming from the same or similar Google IPs and therefore the StopForumSpam Mod is going to let everything through registration based on IP address.

Hopefully this will fix that otherwise i'll have to scrap PageSpeed.

GamerPerfection 03-01-2013 11:48 AM

Cybex's fix seemed to fix the PageSpeed issue.

iraqiboy90 03-04-2013 08:53 PM

this solution by cyber may be working partially, but its not worth it, because:
  1. .htaccess does still recognize the proxy IP, and cant ban the real IP
  2. IPs not written properly which makes it less user-friendly to resolve the IP
  3. some IPs are extremely not written properly. example: 2620:0:1004:2:d


All times are GMT. The time now is 04:50 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.01626 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
  • (3)bbcode_code_printable
  • (1)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