[Piwik-hackers] Separate controller for API calls?
Daniel Blanco
daniel.blanco at irisalerts.com
Thu Jul 17 09:57:10 CEST 2008
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
More information about the Piwik-hackers
mailing list