I've written an AJAX application with pages that generate the required XML based on the $_GET variables passed to it and Javascript code which makes the required requests.
My problem is that right now, anyone calling the required URL eg. http://mysite.com/getxml.php?id=1 can get at my XML feeds. How do I protect them so that only my site has access to it?
Thanks for the help
Protecting my XML pages
Moderator: General Moderators
What data is in these xml files when you don't want the user to see them?
In my opinion, if you need clientside! JavaScript to access data, it can't be considered secure data, and therefore it should not be a problem if the user would see this xml file. Is it to stop a user from using the xml file in rss readers or on their own sites? Or are there some kind of "secret" data in the xml file you don't want the user to see?
In my opinion, if you need clientside! JavaScript to access data, it can't be considered secure data, and therefore it should not be a problem if the user would see this xml file. Is it to stop a user from using the xml file in rss readers or on their own sites? Or are there some kind of "secret" data in the xml file you don't want the user to see?