[Piwik-hackers] Separate controller for API calls?
px
px at ns1.net
Thu Jul 17 12:59:17 CEST 2008
++to a different controller for API
Daniel Blanco wrote:
> Hi!
> I think it would be nice if the API calls were made against a different
> controller than index.php, in the same way the tracking js sends the
> tracking info to piwik.php.
> For example, having a separate file like api.php, will allow us to
> restrict the backend access to a certain IP address, but still permit
> the API calls to be made from any IP.
>
> What I've done to solve this is to create a "proxy" that recieves the
> API calls and forwards them to the index.php which is locked by the
> .htacces and only accepts
> requests from localhost, while that "proxy" accepts connections from
> everywhere.
>
> What do you think? Is a good or bad idea?
>
> Thanks for this great tool that is helping us a lot with stats!!
>
> Dani
> _______________________________________________
> Piwik-hackers mailing list
> Piwik-hackers at piwik.org
> http://lists.piwik.org/cgi-bin/mailman/listinfo/piwik-hackers
>
More information about the Piwik-hackers
mailing list