To secure kml file

554 views
Skip to first unread message

fosfor

unread,
Nov 6, 2012, 5:35:39 AM11/6/12
to kml-support-g...@googlegroups.com
Hello,
 
I have been working on a project. I would like to secure my kml file from unauthorized people. I dont want everyone to see the kml file. We have a page only authorize people can access. If I upload  this kml file to our page, can anyone access this file except authorized people? I am asking this because kml files are accessed by google server  directly.
 
I am watiting for your ideas.  Thanks in advance. 

barryhunter (KML Guru)

unread,
Nov 6, 2012, 3:42:16 PM11/6/12
to kml-support-g...@googlegroups.com
For displaying in Google Earth, just use normal webserver password protection - eg Basic Auth, via .htaccess files. 


But if you are displaying the KML in Google Maps there is no way. As you note their server has to be able to read the file. And the identity of the user is not passed to you, so you have to open it everyone. 

The best can do is give it a really hard to guess URL, then the likelyhood of someone getting the URL is small. 

Make sure robots.txt etc prevent indexing the file, to help prevent web-crawlers accidently indexing it. 
Message has been deleted

fosfor

unread,
Nov 7, 2012, 6:10:59 AM11/7/12
to kml-support-g...@googlegroups.com
Thank you very much Barry.
Reply all
Reply to author
Forward
0 new messages