开发者

Using Jquery and API - ban [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 11 years ago.

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜