XML and Security

Filed Under (Software Development) by admin on 14-02-2008

Here some thoughts on XML, I have created a google map for one of my sites which gets the info from an XML file containg about 200 marker locations. This works fine and I’m happy with it.

However, while this information is great to show to consumers, there are a number of competitors out there who would love to get their hands on this data and copy it for use on their own sites. Simply having an XML file stored on my server, and anyone being able to see and download the file feeding the maps, clearly raises a problem.

Is there any way of password protecting an XML file, or somehow encrypting it or something? I just need the file to feed the google map, but not be so easily downloadable as it is right now.

Here’s a snippet from my gmap page, if it helps at all

var request = GXmlHttp.create();
request.open(“GET”, “MY-XML-FILE.xml”, true);
request.onreadystatechange = function() {
if (request.readyState == 4) {
var xmlDoc = request.responseXML;
var markers = xmlDoc.documentElement.getElementsByTagName(“marker”);

Usefull links:

Comments are closed.