JorgenPhi / php-snapchat

A PHP library for the Snapchat API - With Commit History
MIT License
259 stars 73 forks source link

"The network you are connected to has been temporarily blocked because of suspicious activity" #78

Closed DanMossa closed 9 years ago

DanMossa commented 9 years ago

So my code has been working great for a while now but then I was all of a sudden bombarded with this error message. Any idea on how to fix? Is there a way to use proxies?

DanMossa commented 9 years ago

Any ideas. I'm a bit confused because I still have the error even though it says temporarily

lizzielizzielizzie commented 9 years ago

Perhaps try using a new account from a different IP address. It sounds like you may have been [ip] banned, just based on the error message - but I can't say for sure

DanMossa commented 9 years ago

I used a proxy but now I get the error

array(3) { ["error"]=> int(1) ["message"]=> string(22) "API Connection failed." ["result"]=> string(73) "Failed connect to feelinsonice-hrd.appspot.com:3128; Connection timed out" }

liamjack commented 9 years ago

@Dgameman1 It looks like you are trying to connect to the API URL via port 3128, which will not work.

DanMossa commented 9 years ago

@cuonic

        CURLOPT_PROXY => '220.231.32.195',
        CURLOPT_PROXYPORT => '3128',

This is the code I added into it. I'm willing to pay you money to help fix me fix this at this point.

JorgenPhi commented 9 years ago

I wouldn't spend money on this, but I'm willing to help you out over Skype in two hours if you would like. On Jan 15, 2015 1:15 PM, "Dgameman1" notifications@github.com wrote:

@cuonic https://github.com/cuonic

    CURLOPT_PROXY => '220.231.32.195',
    CURLOPT_PROXYPORT => '3128',

This is the code I added into it. I'm willing to pay you money to help fix me fix this at this point.

— Reply to this email directly or view it on GitHub https://github.com/JorgenPhi/php-snapchat/issues/78#issuecomment-70143509 .

DanMossa commented 9 years ago

@JorgenPhi That sounds amazing. My skype name is Dgameman1

JorgenPhi commented 9 years ago

For those who want an interesting approach of bypassing this restriction, try proxying this library through a popular anonymizing network. Works like a charm.

liamjack commented 9 years ago

@JorgenPhi That's great as a short term solution but eventually all the exit nodes will get blocked by the API, or Snapchat will notice a load of Tor traffic coming to their API, which will result in them banning every connection from a Tor exit node.

JorgenPhi commented 9 years ago

Yes, it's a short term solution to a bigger problem, but how can we make it not as "suspicious" ? Who says the official app doesn't make some call over a proprietary protocol (the chat protocol for instance) or something similar that we aren't mimicking? On Jan 17, 2015 2:02 PM, "Liam Jack" notifications@github.com wrote:

@JorgenPhi https://github.com/JorgenPhi That's great as a short term solution but eventually all the exit nodes will get blocked by the API, or Snapchat will notice a load of Tor traffic coming to their API, which will result in them banning every connection from a Tor exit node.

— Reply to this email directly or view it on GitHub https://github.com/JorgenPhi/php-snapchat/issues/78#issuecomment-70382048 .

liamjack commented 9 years ago

I have a web app in development using a modified version of the class sending out randomized User Agents (8.1.1 / 8.1.1 Beta / 8.1.2 - Nexus 4 / Nexus 7 / HTC One / Motorola X) and after login I make a request to /ph/device sending a random device token. Then just make sure you don't log in for every request to the API by keeping the auth_token and username as cookies in the user's browser, or in a database. I use the app actively and have not had any locked accounts or blocked IPs.

I haven't had time to look at the chat protocol, does it make a direct TCP connection to the "gateway server" or something ? Snapchat could do something clever like that to keep us out, but for the moment they haven't been very innovative like that.

chandu4ugandhi commented 9 years ago

@JorgenPhi I have sent you the request over the skype for resolve this same bug. I am facing "The network you are connected to has been temporarily blocked because of suspicious activity" bug.