Greetings,
I use google maps' javascript method to retrieve XML.
The call in maps.php looks like this: GDownloadUrl("f iles/sub.php?f=param .....")
The url parameters are calculated at runtime based on the size of the google map displayed.
sub.php takes the URL paramaters, queries a database, and prints the results as XML which are parsed by the javascript in maps.php. My question: how can I prevent a user from merely going directly to files/sub.php, setting his own parameters, and seeing whatever XML results he wishes? Is there a way to prevent a user from accessing the script directly but still allow a different page on my server to access it?
Thanks for any advice you can provide,
Paul
I use google maps' javascript method to retrieve XML.
The call in maps.php looks like this: GDownloadUrl("f iles/sub.php?f=param .....")
The url parameters are calculated at runtime based on the size of the google map displayed.
sub.php takes the URL paramaters, queries a database, and prints the results as XML which are parsed by the javascript in maps.php. My question: how can I prevent a user from merely going directly to files/sub.php, setting his own parameters, and seeing whatever XML results he wishes? Is there a way to prevent a user from accessing the script directly but still allow a different page on my server to access it?
Thanks for any advice you can provide,
Paul
Comment