Page 2 of 3
Re: Trades going inactive!
Posted: Tue Jun 10, 2014 12:39 am
by dmnk
admin wrote:I don't know if there's a way to disable _SERVER["HTTP_X_FORWARDED_FOR"] at Cloudfare
If yes - disable it
If no - add to all common.php
unset($_SERVER["HTTP_X_FORWARDED_FOR"]);
I added unset($_SERVER["HTTP_X_FORWARDED_FOR"]); to common.php but it's not disabled yet.
I asked my host and they say:
The line NEEDS to be set if you are using CloudFlare. Otherwise Apache cannot see the real IP address of the client.
We are seeing the correct values here.. (office IP is 208.167.225.40)
Apache Environment
Variable Value
on 127.0.0.1
GEOIP_ADDR 208.167.225.40
GEOIP_CONTINENT_CODE NA
GEOIP_COUNTRY_CODE US
GEOIP_COUNTRY_NAME United States
HTTP_HOST xxxhdd.com
HTTP_X_REAL_IP 208.167.225.40
HTTP_X_FORWARDED_FOR 208.167.225.40, 208.167.225.40
Everything is working correctly.
So why do some trades go inactive?
Re: Trades going inactive!
Posted: Tue Jun 10, 2014 11:25 am
by admin
It's ok
You can either wait a day, reactivate traders and it will be ok
or go to /scj/admin/?operation=cheat& and deactivate system
Re: Trades going inactive!
Posted: Tue Jun 10, 2014 12:23 pm
by dmnk
admin wrote:It's ok
You can either wait a day, reactivate traders and it will be ok
or go to /scj/admin/?operation=cheat& and deactivate system
I changed it to "on, Just notify me."
Is this fine?
The other question is if my site will be marked as cheater/proxy traffic on other MGPs when I use Cloudflare? because I still don't get why dreamamateurs is marked as proxy traffic when I know it has all real traffic. dreamamateurs is also on Cloudflare.
Re: Trades going inactive!
Posted: Tue Jun 10, 2014 12:42 pm
by admin
That depends on that site, not your site or cloudfare.
Re: Trades going inactive!
Posted: Tue Jun 10, 2014 12:59 pm
by dmnk
admin wrote:That depends on that site, not your site or cloudfare.
Yes, I know but I don't want my site to be marked as cheater/proxy just because I use cloudflare. I send only real traffic.
Also I still don't understand why dreamamateurs.com trade has: Proxy In/Out: 121.2% / 100%
It's my own site and is sending real traffic. How come is proxy in more than 100%?
Re: Trades going inactive!
Posted: Tue Jun 10, 2014 1:01 pm
by admin
Are you sure you've added 'unset' to _all_common.php ?
Re: Trades going inactive!
Posted: Tue Jun 10, 2014 1:13 pm
by dmnk
admin wrote:Are you sure you've added 'unset' to _all_common.php ?
unset($_SERVER["HTTP_X_FORWARDED_FOR"]); is added to common.php
Is it different from _all_common.php ? I don't find such file anywhere.
Re: Trades going inactive!
Posted: Tue Jun 10, 2014 1:23 pm
by admin
You have common.php in scj/cgi
Re: Trades going inactive!
Posted: Tue Jun 10, 2014 2:03 pm
by dmnk
admin wrote:You have common.php in scj/cgi
Ok, Added unset($_SERVER["HTTP_X_FORWARDED_FOR"]); in that file as well.
However it is still not unset in test.php (You already have access to admin)
Re: Trades going inactive!
Posted: Tue Jun 10, 2014 2:04 pm
by admin
It will not affect test.php as it does not use common.php as shows variables as is
It will affect the script, if you are looking at daily stats - wait till tomorrow