How do I restore original visitor IP with vBulletin when using Cloudflare?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • webgeek247
    Senior Member
    • Mar 2006
    • 291
    • 5.7.X

    How do I restore original visitor IP with vBulletin when using Cloudflare?

    Hey,

    #1 won't work for vBulletiin 5.2.5 and so I did #2 as mentioned at https://support.cloudflare.com/hc/en...ith-vBulletin- but it doesn't work?

    Regards,
    Chris
    Web Hosting Forum | Fastest Hosting | Backup Storage
  • K a M a L
    Senior Member
    • Dec 2009
    • 118

    #2
    I don't know who created this tutorial but vBulletin handles Reverse Proxy without need to modification
    you just need to set this value in config.php
    PHP Code:
    $config['Misc']['proxyipheader'] = 'HTTP_X_FORWARDED_FOR'
    in your case ( Based on the http header variable mentioned on the tutorial
    PHP Code:
    $config['Misc']['proxyipheader'] = 'HTTP_CF_CONNECTING_IP'
    Last edited by K a M a L; Sat 28 Jan '17, 7:44pm.

    Comment


    • winky8300
      winky8300 commented
      Editing a comment
      hello

      I remember that there was a change on the included / class_core file, but as the link given by webgeek247 is dead, do you remember this change?
  • webgeek247
    Senior Member
    • Mar 2006
    • 291
    • 5.7.X

    #3
    Not matter what I tried nothing works!
    Web Hosting Forum | Fastest Hosting | Backup Storage

    Comment

    • Mark.B
      vBulletin Support
      • Feb 2004
      • 24286
      • 6.0.X

      #4
      I've got to be honest, but the best answer is not to bother with Cloudflare.

      It causes endless problems and I'm yet to be convinced of what the benefit is supposed to be.
      MARK.B
      vBulletin Support
      ------------
      My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
      My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

      Comment

      • webgeek247
        Senior Member
        • Mar 2006
        • 291
        • 5.7.X

        #5
        Originally posted by Mark.B
        I've got to be honest, but the best answer is not to bother with Cloudflare.

        It causes endless problems and I'm yet to be convinced of what the benefit is supposed to be.
        I don't think that's the best answer, but I accept that you don't see the benefits in using it.

        I like Cloudflare as it is a CDN for static content which serves a lot of files faster to users in different parts of the world, where every ms counts, it stop bad bots without you having to hack the site to death by updating .htaccess rules, etc. The list goes on.

        The faster a website loads the better, and Cloudflare certainly helps with that, which can only be a good thing considering Google favours sites that load quicker and use SSL, etc.

        WHMCS is excellent software but was very slow until there last update and now it loads blazing fast which customers notice and more likely to signup to a hosting provider from this, because if the provider's site loads fast then there's a good chance the customer's site will too.

        The faster the better. I hope vBulletin try to keep code to run as fast as possible and to always have it use best SEO practices, etc.
        Web Hosting Forum | Fastest Hosting | Backup Storage

        Comment

        Related Topics

        Collapse

        Working...