Real Estate Forums

Coding HTML, ASP, PHP, JAVA MYSQL and more. All coding questions should be asked here.

Reply
 
Thread Tools Display Modes
Old 04-21-2007, 09:16 AM
PVB99 PVB99 is offline
New real estate webmaster
 
Join Date: May 2005
Posts: 9
PVB99 is on a distinguished road
Default Prevent XML file from being copied

I spent a lot of time looking up geocodes for a google map for my site. I don't want anyone to be able to just copy all these geocodes I looked up by downloading the xml file, I want them to have to look them up if they want to copy the idea

If you look at the page html:
body onload="load(30.18,-81.525,3,'geocodes.xml')" onunload="GUnload()"

you see the file name "geocodes.xml" and type that into your browser http://yoursite .com/geocodes.xml

you will get the file. Is there something you can set in Apache to prevent that?

Thanks
Reply With Quote
Old 04-21-2007, 11:40 AM
REW Fergus's Avatar
REW Fergus REW Fergus is offline
Real Estate Webmasters Staff
 
Join Date: Aug 2006
Location: Nanaimo, BC
Posts: 588
REW Fergus is on a distinguished road
Default Re: Prevent XML file from being copied

No, there isn't.

The essential problem here is that the API is Javascript, and Javascript is interpreted by the browser. Any data you want the Javascript to operate on must be accessible to the browser, and if it is, it's accessible to the browser user too.
__________________
Fergus Gibson
realestatewebmasters.com
Reply With Quote
Old 04-21-2007, 12:05 PM
RESteve's Avatar
RESteve RESteve is offline
Moderator
 
Join Date: Sep 2005
Location: Houston, TX
Posts: 1,473
RESteve is on a distinguished road
Default Re: Prevent XML file from being copied

I have been fighting this issue with another business I'm running. I've heard of a few tricks, but no real way to hide the XML.

-Call backs. No sure what it is, but it did hide the code. You needed a packet sniffer to get the codes, but not everyone has those that just are looking at source.

-Framing. Low security, but something.

And that's where I get left off. It sucks - the person that figures this out is going to be a tad bit wealthy I'd think. To hide the XML, you might want to try database driven population, so that the geos are just stored in an XML somewhere - but actually pulled from a Sql DB. There is a component i use for this, and though if you look at the source code you still see the coordinates, it's a tad bit harder to copy EVERYTHING, as it's not parsed like a lovely XML, rather embedded in the page source code.
__________________
Steve Castaneda, Realtor
Keller Williams Realty
The MyHomeHouston Team

Specializing in Houston Real Estate. Feel free to visit my Houston Real Estate Blog or read about Real Estate Technology for agents.
Reply With Quote
Old 04-21-2007, 07:53 PM
PVB99 PVB99 is offline
New real estate webmaster
 
Join Date: May 2005
Posts: 9
PVB99 is on a distinguished road
Default Re: Prevent XML file from being copied

Thanks for the comments. I only sorta know what I am talking about here but would an XML HTTP request to a mysql db be hidden? Does AJAX add any security?
Reply With Quote
Old 04-22-2007, 09:29 AM
RichardDavies RichardDavies is offline
New real estate webmaster
 
Join Date: Apr 2006
Location: Vancouver, WA
Posts: 25
RichardDavies is on a distinguished road
Default Re: Prevent XML file from being copied

The only thing that changes with AJAX (i.e. XML HTTP requests) is that the browser sends the request at a different time. Instead of the request being sent when the page is loaded, it's sent after the page is loaded. Granted it may be a little less obvious to the user what is happening, but any user with a little know-how and the right tools still wouldn't have any difficulty getting the data.

You might want to reconsider if you really want to try and protect this data. The web was designed and built to be "open source"... I'm sure you've used the view source option in your browser before to look at someone else's HTML, JavaScript, or CSS code before. One of the important ideas behind the whole "Web 2.0/AJAX" movement going on right now on the web is the idea of open access to data. Trying to hide and protect your data so that it can only be used in the manner you've prescribed is the Web 1.0 mindset. Allowing open access so that others can collaborate and use your data is the Web 2.0 mindset... just something to think about.
Reply With Quote
Old 04-22-2007, 10:47 PM
webmaster's Avatar
webmaster webmaster is offline
Administrator
 
Join Date: Apr 2004
Posts: 13,767
webmaster will become famous soon enough
Default Re: Prevent XML file from being copied

Todd, is this for your IDX solution? If so, why not run your geocoder on all properties, parse them into your mysql database (Cache them) and then call them from your database. No need to create an XML file is there?
__________________
Want to save up to 50% off Real estate webmasters product websites & common upgrades? Check out my latest blog post regarding our end of the year sale.
Reply With Quote
Old 04-23-2007, 10:19 AM
REW Fergus's Avatar
REW Fergus REW Fergus is offline
Real Estate Webmasters Staff
 
Join Date: Aug 2006
Location: Nanaimo, BC
Posts: 588
REW Fergus is on a distinguished road
Default Re: Prevent XML file from being copied

That would work, but the underlying problem remains. In that scenario, the geocodes would not be in an XML file, but they could be parsed from the HTML source of the map document. Every effort will come back to the inescapable fact that the technology is browser-scripting, so the browser must have access to plain-text geocodes. As long as that is true, the geocodes are there for the scraping.
__________________
Fergus Gibson
realestatewebmasters.com
Reply With Quote
Old 04-23-2007, 10:34 AM
BrandonSternfield's Avatar
BrandonSternfield BrandonSternfield is offline
Uber Real Estate Webmaster
 
Join Date: Feb 2007
Location: Fort Lauderdale, Florida
Posts: 1,502
BrandonSternfield is on a distinguished road
Send a message via AIM to BrandonSternfield
Default Re: Prevent XML file from being copied

You could always rewrite the function, instead of taking in an XML doc, it takes in your own format, which will simply be a header, with xml inside. You'd simply take your file, skip x bytes ahead, and just read it like a normal xml. It's one way when programming non-web stuff most of us hide our info so people (usually gamers) can't edit the files (to create cheats).

As a side note, when searching for PVB99 on google, you find this thread.
__________________
If you're not remembered, you never existed.
Reply With Quote
Old 04-24-2007, 08:53 PM
REW Fergus's Avatar
REW Fergus REW Fergus is offline
Real Estate Webmasters Staff
 
Join Date: Aug 2006
Location: Nanaimo, BC
Posts: 588
REW Fergus is on a distinguished road
Default Re: Prevent XML file from being copied

True, you could obfuscate the data somehow. I think this example might be insufficient, but if you wrote an algorithm to transpose the co-ordinates, you could create some data that would be useless to someone lifting it from the site.

Problem is that Javascript is a browser-based technology (I sound like a broken record), so anything you write in Javascript can be read by the browser user, thus rendering any attempt to obsfucate the data futile since the algorithm can easily be read and reversed.
__________________
Fergus Gibson
realestatewebmasters.com
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



For our members

Main Sections

IDX Coverage Areas

Spiders Welcome

All times are GMT -7. The time now is 08:19 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.