Using Jquery and API - ban [closed]
I may have access to a search API that uses JSON based on a URL GET. They are quick to ban and the appeal process takes a long time.
Now, if I use this from my website through PHP and hit it too many times, I guess it would be easy to ban 开发者_运维百科(just banning a single IP).
On the other hand, if I were to use Jquery to handle the call and returned data...
Then would it still be possible for the API owner to ban my site? If yes, how?
Does a Jquery api call still give any signal that they came from my site even though its client side (javascript)?
Yes, he is being bannable. Ajax is also transfering referer, so with banned referer you would be being unable to access that script. However! You can use any proxy script on free host. LIke this
<?php
echo file_get_contents("http://url-of-site-to-retreive-data.com/json.json");
?>
Then would it still be possible for the API owner to ban my site?
No, not if you don't supply anything else in the query that is unique for your site. Such as access credentials.
And is it morally correct? No
Is it legal? Probably not, i guess that the webservice has some sort of usage-rules
精彩评论