Allow PHP to only output to a certain Java application
Posted: Mon Aug 15, 2011 8:48 pm
I would like to only allow my PHP code to output if it has verified that the request was sent from a certain Java application. I cannot think of anything.
The Java application requests a PHP page and the output is then used in the application but I want PHP to only output to the application if it is proven to PHP that it is my Java application and not someone who has decompiled the Java code and stolen the request, so that it is impossible for anything to communicate with the PHP code except the exact Java app.
My problem is that I am making something that could be abused if someone worked out how to request it and automate it to request a lot.
Sorry if that doesn't make sense, if you would like me to elaborate please ask.
The Java application requests a PHP page and the output is then used in the application but I want PHP to only output to the application if it is proven to PHP that it is my Java application and not someone who has decompiled the Java code and stolen the request, so that it is impossible for anything to communicate with the PHP code except the exact Java app.
My problem is that I am making something that could be abused if someone worked out how to request it and automate it to request a lot.
Sorry if that doesn't make sense, if you would like me to elaborate please ask.