I am developing iOS app using phonegap. Users first have to register or log in. (ajax: post to php file on my webserver, like here: PHP AJAX login, is this method secure?).
Info needs to be sent to mySQL database, users can upload pictures, ...
Now I was wondering if there is a way to prevent other people from posting to my php files.
In my opinion, it would be quite simple to make some script to add thousands of fake accounts, or upload thousands of pictures.
I read: POST method, Ajax and Security?, but I don't seem to find a way to implement this in a phonegap app.
How do I make sure I am the only one who can use these php files?