Http_x_cluster_client_ip

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nineaxis
    New Member
    • Feb 2008
    • 18
    • 3.8.x

    Http_x_cluster_client_ip

    Hello.

    My host doesn't use the standard method of pulling the user's IP address.

    I need to change the call to 'HTTP_X_CLUSTER_CLIENT_IP'

    I've searched, but have been unable to find where I can edit my 3.6.8 templates to use this different IP lookup.

    Any clues?

    Thanks guys
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    You will probably need to find the piece of code in the PHP files that pulls the user's IP address. I looked through the files just now but I am unable to find it. If you have some coding ability then I recommend you ask this question on www.vbulletin.org. They deal with code modifications over there.

    Comment

    • Nineaxis
      New Member
      • Feb 2008
      • 18
      • 3.8.x

      #3
      Found it.

      For anyone who is on a shared cluster environment (not shared hosting), here is where you modify your files:

      includes\class_core.php]
      Line 2120 : return $_SERVER['REMOTE_ADDR'];
      Line 2130 : $alt_ip = $_SERVER['REMOTE_ADDR'];

      I changed it to

      includes\class_core.php]
      Line 2120 : return $_SERVER['HTTP_X_CLUSTER_CLIENT_IP'];
      Line 2130 : $alt_ip = $_SERVER['HTTP_X_CLUSTER_CLIENT_IP'];

      And now each of my different users has a different IP.

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...