Prevent calling django-rest-framework APIs programmatically
<p>I'm using <a href="http://www.django-rest-framework.org/" rel="nofollow">django-rest-framework</a>, which accepts API requests from frontend javascript. My frontend javascript and backend django APIs are hosted on the same apache server and are within the same domain.</p>

<p>Is there a way by which I can ensure that my APIs are accessible only via the frontend javascript and not via curl commands or any other programming methods ? </p>