popcorn-official / popcorn-desktop

Popcorn Time is a multi-platform, free software BitTorrent client that includes an integrated media player ( Windows / Mac / Linux ) A Butter-Project Fork
https://popcorn-time.site
Other
9.46k stars 625 forks source link

Cloudflare is blocking some IP from accessing PT API #676

Closed mbpDeveloper closed 6 years ago

mbpDeveloper commented 6 years ago

Operating System Version: Windows 10 x64

Popcorn Time Version: Popcorn Time 3.10

Download date: 1 week ago updated.

Expected Behaviour

Working properly before 2-3 weeks ago, if i remember right.

Actual Behaviour

Infinite loading bar.

Steps to reproduce the behaviour

I had 2 dedicated server and 1 cloud. On all servers, OpenVPN installed. The thing is i'm the one using these vpn's but when i try to open popcorntime website or any of the api's cloudflare validation pops up. I dont understand why that showing. When i disconnect vpn, app works very well. I pressed F12 on PopcornTime while it tries to load page, and on the console i clicked the api link. As you can see on the picture, cloudflare validation still pops up. I tried to solve this on reddit but didnt find any solution. I think problem is cloudflare validation shows up, and the app cant get any data. Reddit Link: https://www.reddit.com/r/PopCornTime/comments/7h963d/popcorntime_not_working_with_vpn/

Pictures; image image image

Persei08 commented 6 years ago

I think "Cloudflare is blocking some IP from accessing PT API" could be a better title :)

Seem like another user is having this issue too: https://www.reddit.com/r/PopCornTime/comments/7loh66/my_popcorn_time_wont_connect/

I don't know if it could be bypassed or handled in PT. Maybe some Cloudflare Web Application Firewall rules to adjust ?

also @mbpDeveloper can you check if your vpn ip are in listed in The project Honeypot ? (cloudflare use that list)

anonymouse1989 commented 6 years ago

This is exactly what is happening to me. This happens to all my PT even using ios and tvos version, I think its cloudflare blocking the ip so it cant access PT API. The only difference is that when I use vpn like tunnelbear, it lets me access PT, but when using my home fiber connections it doesnt.

Persei08 commented 6 years ago

@anonymouse1989, Plz provide more details (from which site have you downloaded PT? PT version number? OS?). Also PT team don't provide or support ios or tvos versions, there are lot of PT clones/forks but not all use PT API.

What is happening when you access the PT API from your web browser, is the cloudflare security test showing up?

edit: Oops my bad, I guess you are the guy from the reddit post I linked above.

anonymouse1989 commented 6 years ago

I downloaded fro popcorntime.sh, and I get the same issue started with Cloudflare giving me recaptcha, then when loading PT it gives me infinite loading, same as above. I tried using different connections and they worked fine with PT, i used my other fiber connection and my cellular from my carrier, all worked fine. Only with this current connection that it doesnt connect, all PT fork and non fork version doesnt work. I am also using fork version from kinglilrowrow for ios and tvos.

mbpDeveloper commented 6 years ago

@Persei08 Thanks, i changed the title like you said :) The guy is having same problem as mine i think, thanks to cloudflare.

Persei08 commented 6 years ago

@mbpDeveloper Thanks, I hope it will help other users to find the issue.

Persei08 commented 6 years ago

@mbpDeveloper can you try to ask project honeypot to whitelist your VPN Ip, seem like it fixed the issue for @anonymouse1989

mbpDeveloper commented 6 years ago

@Persei08 sorry for late answer, but the honeypot thing worked. I whitelisted my ip address, and now i can open the app without problem. Thanks again :)

Persei08 commented 6 years ago

Great, thanks for the feedback

jorgeEF commented 5 years ago

Hello, i'm having this problem too. My ip is already whitelisted on honeypot but I can't access PT API address in the browser without filling the cloudflare captcha, wich obviously PT can't fill by itself so it can't access the API meaning nothing loads on PT. Any workaround?