Welcome to World of IPTV

With

+23k members
+11k threads
+106k posts

we are the most popular IPTV community on the web. 

IMPORTANT NOTE:
WE HAVE RECENTLY NOTICED THAT TOO MANY DOUBLE FAKE ACCOUNTS ARE CREATED IN THE PAST.
TO PREVENT THIS ISSUE THE DECISION WAS MADE THAT IN THE FUTURE A ANNUALLY FEE 20 EURO WILL BE RAISED FOR NEW MEMBERSHIPS.

Join now to the World of IPTV

Forum Rules

Before you start, check out the forum rules first

Account upgrade

Upgrade your account to get access to full features

Advertising

Would you like to place your advertisement with us ?

Resources Manager

Hundreds of IPTV scripts and apps are available for download

Question cloudflare in xcodes

malaquias

Extended Member
Ext. Member
Joined
Jul 15, 2019
Messages
211
Reaction score
1,818
Points
101
Location
Amsterdam
but we have files encrypted
do you can modify the file to make get.php keep using the same dns name where the m3u downloaded in the list
read the issue here
even if it is encrypted you can write after <php? and before the encrypted source no problem ..
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

malaquias

Extended Member
Ext. Member
Joined
Jul 15, 2019
Messages
211
Reaction score
1,818
Points
101
Location
Amsterdam
are you sure bro ?



with this tip are you able to use different port than permitted by cloudflare ?
did you read somewhere me saying you can use diferent port ? no
I posted in forum already the ports supported by cloudflare.
The modification on header of CF connecting is only that you don't receive ips from cloudflare in headers and receive clients real ip.
 

sambir

Extended Member
Ext. Member
Joined
Sep 21, 2019
Messages
55
Reaction score
208
Points
44
Location
trabzon
If you added nginx conf and add whats provided here bu cloudflare themselves it does the same

 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

On4sat

Extended Member
Ext. Member
Joined
Jul 2, 2019
Messages
354
Reaction score
1,740
Points
104
Location
Internet
Website
www.startstv.com
where put variável ?

2. To Include the original visitor IP in your logs, add the variables $http_cf_connecting_ip and $http_x_forwarded_for in the log_formatdirective.

Possible help friend @malaquias


tip
init.php in wwwdir in main and slaves add

if (isset($_SERVER["HTTP_CF_CONNECTING_IP"])) {
$_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_CF_CONNECTING_IP"];
}
 
J

JoAodeDeUs

Guest
In good, even after everything that @malaquias posted has people still with doubts?
And as for this legend that Cloudflare limits bandwidth or other bullshit ... please make a Cloudflare account, read ... Everything is very well explained there. Obviously, get one account PRO.
For me, they could close this topic.
 

supermix

Extended Member
Ext. Member
Joined
Dec 1, 2019
Messages
6
Reaction score
4
Points
14
Location
spain
This method work if u use cloudflare allowed ports.
If u use another ports u need another tricks and only work with m3u.
nothing for mag devices and xcplugin





In good, even after everything that @malaquias posted has people still with doubts?
And as for this legend that Cloudflare limits bandwidth or other bullshit ... please make a Cloudflare account, read ... Everything is very well explained there. Obviously, get one account PRO.
For me, they could close this topic.
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

enricoluigi

Extended Member
Ext. Member
Joined
Sep 19, 2019
Messages
76
Reaction score
427
Points
64
Location
Brasil
where put variável ?

2. To Include the original visitor IP in your logs, add the variables $http_cf_connecting_ip and $http_x_forwarded_for in the log_formatdirective.

Possible help friend @malaquias


tip
init.php in wwwdir in main and slaves add

if (isset($_SERVER["HTTP_CF_CONNECTING_IP"])) {
$_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_CF_CONNECTING_IP"];
}
Sorry for bumping a dead thread but i dont think i need to create another topic

I did what you do but i still cant get the real ip.
I added the code to init.php and the cloudflare ip and the configs needed in nginx.conf

what do i have to do exactly?
can someone help me?
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
J

JoAodeDeUs

Guest
Sorry for bumping a dead thread but i dont think i need to create another topic

I did what you do but i still cant get the real ip.
I added the code to init.php and the cloudflare ip and the configs needed in nginx.conf

what do i have to do exactly?
can someone help me?


You are using CF on your server, ok?
And the IPs shown on your dashboard are the CF IPs and not the real IPs...is that it?

Go in /home/xtreamcodes/iptv_xtream_codes/wwwdir
Edit init.php

Not problem the file be encripted...

There in top of file, add:


PHP:
if (isset($_SERVER["HTTP_CF_CONNECTING_IP"]))
{
$_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_CF_CONNECTING_IP"];
}

like image below, and with ?> in the end, closing...

Screenshot_2.jpg
 
J

JoAodeDeUs

Guest
You are using CF on your server, ok?
And the IPs shown on your dashboard are the CF IPs and not the real IPs...is that it?

Go in /home/xtreamcodes/iptv_xtream_codes/wwwdir
Edit init.php

Not problem the file be encripted...

There in top of file, add:


PHP:
if (isset($_SERVER["HTTP_CF_CONNECTING_IP"]))
{
$_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_CF_CONNECTING_IP"];
}

like image below, and with ?> in the end, closing...

View attachment 2228

Can also do:

In nginx.conf, in after open http {

PHP:
http {

#CF:
set_real_ip_from 173.245.48.0/20;
set_real_ip_from 103.21.244.0/22;
set_real_ip_from 103.22.200.0/22;
set_real_ip_from 103.31.4.0/22;
set_real_ip_from 141.101.64.0/18;
set_real_ip_from 108.162.192.0/18;
set_real_ip_from 190.93.240.0/20;
set_real_ip_from 188.114.96.0/20;
set_real_ip_from 197.234.240.0/22;
set_real_ip_from 198.41.128.0/17;
set_real_ip_from 162.158.0.0/15;
set_real_ip_from 104.16.0.0/13;
set_real_ip_from 104.24.0.0/14;
set_real_ip_from 172.64.0.0/13;
set_real_ip_from 2400:cb00::/32;
set_real_ip_from 2606:4700::/32;
set_real_ip_from 2803:f800::/32;
set_real_ip_from 2405:b500::/32;
set_real_ip_from 2405:8100::/32;
set_real_ip_from 2a06:98c0::/29;
real_ip_header X-Forwarded-For;
real_ip_recursive off;

Need realip module compiled in NGINX...

For confirm if have:
nginx -V 2>&1 | egrep --color -o 'realip_module'
In the case XC:
/home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx -V 2>&1 | egrep --color -o 'realip_module'

For obtain IPs CF updated: IN cloudflare_ips.conf FILE -->

PHP:
cat /dev/null > cloudflare_ips.conf && curl -s https://www.cloudflare.com/ips-v4 | while read ip; do echo "set_real_ip_from $ip;" >> cloudflare_ips.conf; done && curl -s https://www.cloudflare.com/ips-v6 | while read ip; do echo "set_real_ip_from $ip;" >> cloudflare_ips.conf; done && printf "real_ip_header X-Forwarded-For;\nreal_ip_recursive off;\n" >> cloudflare_ips.conf

Test:
/home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx -t
Reload:
/home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx -s reload

NOT use CF in LBs...
 
Last edited by a moderator:
J

JoAodeDeUs

Guest
But you added in PHP the header, or directly in nginx.conf?

And if you have a MOVIE X in an LB, and you indicate another LB for that movie in the VOD config, it will copy that movie to the other LB...why do you want that?

Not use CF in LBs, sooner or later CF will block
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

enricoluigi

Extended Member
Ext. Member
Joined
Sep 19, 2019
Messages
76
Reaction score
427
Points
64
Location
Brasil
Can also do:

In nginx.conf, in after open http {

PHP:
http {

#CF:
set_real_ip_from 173.245.48.0/20;
set_real_ip_from 103.21.244.0/22;
set_real_ip_from 103.22.200.0/22;
set_real_ip_from 103.31.4.0/22;
set_real_ip_from 141.101.64.0/18;
set_real_ip_from 108.162.192.0/18;
set_real_ip_from 190.93.240.0/20;
set_real_ip_from 188.114.96.0/20;
set_real_ip_from 197.234.240.0/22;
set_real_ip_from 198.41.128.0/17;
set_real_ip_from 162.158.0.0/15;
set_real_ip_from 104.16.0.0/13;
set_real_ip_from 104.24.0.0/14;
set_real_ip_from 172.64.0.0/13;
set_real_ip_from 2400:cb00::/32;
set_real_ip_from 2606:4700::/32;
set_real_ip_from 2803:f800::/32;
set_real_ip_from 2405:b500::/32;
set_real_ip_from 2405:8100::/32;
set_real_ip_from 2a06:98c0::/29;
real_ip_header X-Forwarded-For;
real_ip_recursive off;

Need realip module compiled in NGINX...

For confirm if have:
nginx -V 2>&1 | egrep --color -o 'realip_module'
In the case XC:
/home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx -V 2>&1 | egrep --color -o 'realip_module'

For obtain IPs CF updated: IN cloudflare_ips.conf FILE -->

PHP:
cat /dev/null > cloudflare_ips.conf && curl -s https://www.cloudflare.com/ips-v4 | while read ip; do echo "set_real_ip_from $ip;" >> cloudflare_ips.conf; done && curl -s https://www.cloudflare.com/ips-v6 | while read ip; do echo "set_real_ip_from $ip;" >> cloudflare_ips.conf; done && printf "real_ip_header X-Forwarded-For;\nreal_ip_recursive off;\n" >> cloudflare_ips.conf

Test:
/home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx -t
Reload:
/home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx -s reload

NOT use CF in LBs...
Thank you Joao.
It works now

There is an old problem i have been facing for 2 years
When i add a movie from one lb as source to another lb it gives me this error:
http://My_LB_Domain:80/system_api.php?password=1P3ag3jEZOixrejmEi5Y&action=getFile&filename=%2Fhome%2Fdeluge%2Fcompletos%2FIrmaoUrso2_720%2FIrm%C3%A3o+Urso+2+%5B2006%5D-BluRay+720p+Dual+%C3%81udio.mkv: Invalid data found when processing input

It is related to the cloudflare real ip thing, isnt it?

What you mean by NOT use cloudflare on LB?
Is it wrong to use cloudflare on lb? i have been using it since i started my first server lol
 

enricoluigi

Extended Member
Ext. Member
Joined
Sep 19, 2019
Messages
76
Reaction score
427
Points
64
Location
Brasil
But you added in PHP the header, or directly in nginx.conf?

And if you have a MOVIE X in an LB, and you indicate another LB for that movie in the VOD config, it will copy that movie to the other LB...why do you want that?

Not use CF in LBs, sooner or later CF will block
Added both on nginx.conf and header.
I dont use that function, i was just curious why that error happens when cloudflare is enabled.
and you are right, cloudflare blocks me in one or 2 months so i have to create new accounts.
 
J

JoAodeDeUs

Guest
Thank you Joao.
It works now

There is an old problem i have been facing for 2 years
When i add a movie from one lb as source to another lb it gives me this error:
http://My_LB_Domain:80/system_api.php?password=1P3ag3jEZOixrejmEi5Y&action=getFile&filename=%2Fhome%2Fdeluge%2Fcompletos%2FIrmaoUrso2_720%2FIrm%C3%A3o+Urso+2+%5B2006%5D-BluRay+720p+Dual+%C3%81udio.mkv: Invalid data found when processing input

It is related to the cloudflare real ip thing, isnt it?

What you mean by NOT use cloudflare on LB?
Is it wrong to use cloudflare on lb? i have been using it since i started my first server lol

But why do you want this? Pulling from one LB to another?
As I said, it will copy the movie...you will have the same movie in 2 LBs...

Yes, sooner or later you may have a problem and your account be blocked...CF does not allow streaming in quantity without using their specific plan for this...
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

enricoluigi

Extended Member
Ext. Member
Joined
Sep 19, 2019
Messages
76
Reaction score
427
Points
64
Location
Brasil
But why do you want this? Pulling from one LB to another?
As I said, it will copy the movie...you will have the same movie in 2 LBs...

Yes, sooner or later you may have a problem and your account be blocked...CF does not allow streaming in quantity without using their specific plan for this...
I used it in the past to serve some important content from all load balancers because i used to have problems with my old dedicated servers. I dont use it anymore.
 

darknight.live

Extended Member
Ext. Member
Joined
Oct 1, 2019
Messages
18
Reaction score
62
Points
24
Location
swiss
if you use cloudflare in your LB's you may recive some warning from CF, for ilegal use or streaming content..
like @JoAodeDeUs said... or you pay for streaming ( and is not cheap ) or you will get blocked for streaming copy righted content.
 
shape1
shape2
shape3
shape4
shape5
shape6
Top
AdBlock Detected

We know, ad-blocking software do a great job at blocking ads. But our site is sponsored by advertising. 

For the best possible site experience please take a moment to disable your AdBlocker.
You can create a Account with us or if you already have account, you can prefer an Account Upgrade.

I've Disabled AdBlock