Trades going inactive!

dmnk
Posts: 33
Joined: Sun Jun 08, 2014 2:39 pm

Re: Trades going inactive!

Post 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?
admin
Site Admin
Posts: 37995
Joined: Wed Sep 10, 2008 11:43 am

Re: Trades going inactive!

Post 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
Don't forget to run script update
dmnk
Posts: 33
Joined: Sun Jun 08, 2014 2:39 pm

Re: Trades going inactive!

Post 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.
admin
Site Admin
Posts: 37995
Joined: Wed Sep 10, 2008 11:43 am

Re: Trades going inactive!

Post by admin »

That depends on that site, not your site or cloudfare.
Don't forget to run script update
dmnk
Posts: 33
Joined: Sun Jun 08, 2014 2:39 pm

Re: Trades going inactive!

Post 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%?
admin
Site Admin
Posts: 37995
Joined: Wed Sep 10, 2008 11:43 am

Re: Trades going inactive!

Post by admin »

Are you sure you've added 'unset' to _all_common.php ?
Don't forget to run script update
dmnk
Posts: 33
Joined: Sun Jun 08, 2014 2:39 pm

Re: Trades going inactive!

Post 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.
admin
Site Admin
Posts: 37995
Joined: Wed Sep 10, 2008 11:43 am

Re: Trades going inactive!

Post by admin »

You have common.php in scj/cgi
Don't forget to run script update
dmnk
Posts: 33
Joined: Sun Jun 08, 2014 2:39 pm

Re: Trades going inactive!

Post 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)
admin
Site Admin
Posts: 37995
Joined: Wed Sep 10, 2008 11:43 am

Re: Trades going inactive!

Post 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
Don't forget to run script update
Post Reply