Protect Piwik DB on my host

Hello,

I would like to avoid that anybody just by copy paste the javascript at the end of a page is able to record “fake” visit.

In other words, is it possible to hide or remove from the HTML page the pkbaseURL?
For exemple, can I call the piwikTracker from my php file?

Many thanks for your help.

Pierre

yes, use the server-side PiwikTracker class. http://piwik.org/docs/tracking-api/