Nginx, Cloudflare, all incoming detected as NoJS and proxy.

Our support will answer all your general questions here.

Moderator: Rock

Post Reply
magicum
Posts: 12
Joined: Wed Jun 10, 2009 9:37 pm

Nginx, Cloudflare, all incoming detected as NoJS and proxy.

Post by magicum »

Hello,

I am using CloudFlare, Nginx, FastCGI cache (php-fpm), opcache.

I am tracking INs using javascript provided. INs are counted.

However almost all (~98%) of traffic detected as NoJS (which is strange as I track INs by JS and if there is no js it would be counted, correct?)

and ~98% of traffic counted as "proxy".

Transferring of real ip from CloudFlare to Ngnix enabled from day zero. Moreover, in Cheat stats all IPs are real, but still "proxy".

Can you please fix?
magicum
Posts: 12
Joined: Wed Jun 10, 2009 9:37 pm

Re: Nginx, Cloudflare, all incoming detected as NoJS and pro

Post by magicum »

Looks like I've fixed it.

Yes, using CloudFlare and real_ip Nginx module seems to be enough, but not.

I had to remove headers:
HTTP_X_FORWARDED_FOR
HTTP_X_FORWARDED_PROTO

from PHP requests to avoid marking ALL incoming traffic as Proxy. Not sure if I made the ability to detect real proxy impossible for TE3, but..
magicum
Posts: 12
Joined: Wed Jun 10, 2009 9:37 pm

Re: Nginx, Cloudflare, all incoming detected as NoJS and pro

Post by magicum »

..but CloudFlare is already the proxy by itself, so that way of proxy detection won't work anyway under CloudFlare.
bbhrucy79
Posts: 122
Joined: Tue May 24, 2011 4:00 pm

Re: Nginx, Cloudflare, all incoming detected as NoJS and pro

Post by bbhrucy79 »

Hello Magicum!

We are trade partners by the way (naughtypixiemedia).

I also tried cloudflare back a while ago. Unfortunately te3 is not designed to work in cloud-right? It was my issue as well-proxy.

Will te3 be able to work in future with content distribution systems?
magicum
Posts: 12
Joined: Wed Jun 10, 2009 9:37 pm

Re: Nginx, Cloudflare, all incoming detected as NoJS and pro

Post by magicum »

Hi bbhrucy79,

the easy fix is just to disable TE3 from CloudFlare caching, even free plan allows there to create several rules. I did and it worked.
bbhrucy79
Posts: 122
Joined: Tue May 24, 2011 4:00 pm

Re: Nginx, Cloudflare, all incoming detected as NoJS and pro

Post by bbhrucy79 »

Thats nice to know :-)
Post Reply