News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

wrong users IP when using cloudflare.com

Started by zlotowinfo, May 27, 2013, 10:16:19 AM

Previous topic - Next topic

zlotowinfo

i have IP: 77.45.*.*
forum telling me: zlotowinfo  (173.245.53.191)

IP: 173.245.53.191
Host name: cf-173-245-53-191.cloudflare.com [nofollow]

i found to get good IP, have to check this:
if(isset($_SERVER["HTTP_CF_CONNECTING_IP"])) return $_SERVER["HTTP_CF_CONNECTING_IP"];      

but where add this?

Arantor

There is a mod you can install for CloudFlare that will do this for you.

Though a lot of users have reported trouble with CloudFlare and their forum (and it doesn't really protect you from anything in a lot of cases)

zlotowinfo

cant find :/
http://custom.simplemachines.org/mods/index.php?action=search;basic_search=cloudflare

i found in google, can i trust?
http://www.ryukent.com/2012/05/protect-your-smf-forum-against-spam/ [nofollow]

if i know where smf checking IP i could add
if(isset($_SERVER["HTTP_CF_CONNECTING_IP"])) return $_SERVER["HTTP_CF_CONNECTING_IP"];

Arantor

I really don't know why you're bothering with CloudFlare in the first place... if the point is to protect against spam there are *far* better ways.

zlotowinfo

cloudflare hide server IP, attacking one domain on cloudflare stay alive other pages

i only need to know where to put that code


Arantor

Quotecloudflare hide server IP, attacking one domain on cloudflare stay alive other pages

Right up until your real IP is found. Which will be as simple as getting an email from your server.

I will not help you because I don't want you to believe you're safe when you're actually not.

Oldiesmann

Michael Eshom
Christian Metal Fans

Advertisement: