View Full Version : HTML file in DAT folder?
boroarke
02-17-2005, 06:09 PM
Is there any way to publish a project using the hard drive folder method and have my html files in the dat folder so individuals can not access my HTML directly? I would normally use the compressed .exe method but for this situation, I need to use the hard drive folder method.
Thanks,
Bryan
Corey
02-17-2005, 06:18 PM
There's no way to serve HTML and protect it at the same time, they will always be able to view the source. But one way to minimize file access is to store your HTML code as a string in your project and write the HTML pages dynamically at runtime using TextFile.WriteFromString(), and deleting them afterward. One idea anyhow. :yes
boroarke
02-17-2005, 06:26 PM
Thanks Cory! Since Im new, a lot of that went right over my head but I will figure out how to do that.
Thanks for the suggestion!
Bryan
Intrigued
02-17-2005, 07:04 PM
Also, don't forget the Crypto Plugin (http://www.autoplay.org/plugin/crypto_encryption.php) offered by I.R.! It utilizes Blowfish 448-bit encyption.
Intrigued
02-17-2005, 07:22 PM
encyption = encryption :eek:
Derek
02-17-2005, 07:40 PM
:)
With either method, the user would still be able to 'view source' when the file is being displayed.
Intrigued
02-17-2005, 07:55 PM
:)
With either method, the user would still be able to 'view source' when the file is being displayed.
Well, how about then adding in Worm's KEYSTROKE.dll to stop some key presses? (if it will work for this? I have not used saved once that .dll) Or, would that be to pervasive? Hmmm...
Intrigued
02-17-2005, 08:31 PM
Or, here is a working solution that seems to work fine within the confines of a Web Object in AMS 5!
Poof in the project name is meant as in *POOF* where did the source go!
Javascript source credit: http://www.hypergurl.com/norightclick.html
Intrigued
02-17-2005, 08:40 PM
I did find an outta the way (read: few know about this option) of getting the source. Just hover over the Web Object and then do the following key combo:
Shift+F10
However, another idea or an add-on idea is to click (as the source for the JavaScript link I posted above recommended) several times on the ENTER key to get some blank lines (say 100 or so) before the first <HTML> tag in the .htm/.html document. Now, the scrollbars on the local system's default document editor could be noticed by the end-user.
But, at least here are some ways we can help to bullet-proof our source HTML a tad better anyway.
:eek:
Derek
02-17-2005, 09:07 PM
Or, here is a working solution that seems to work fine within the confines of a Web Object in AMS 5!
Poof in the project name is meant as in *POOF* where did the source go!
Just FYI: the *POOF* example you posted ... took me 2 seconds to beat the javascript ;)
Intrigued
02-18-2005, 11:50 AM
Just FYI: the *POOF* example you posted ... took me 2 seconds to beat the javascript ;)
That was not created by me. I just put that JavaScript in the project and uploaded it.
;)
Though, it does work good for the casual end-user. Most will not know about the Shift+F10 (to get the right-click function via keyboard) or may not even notice the scrollbar that reveals more data down below.
Derek
02-18-2005, 12:52 PM
Who created it doesnt really come into it :)
Intrigued
02-18-2005, 01:08 PM
NOTE: Don't add in HTML into the .html file after all! Breaks it! (D'oh) But, this still is a good way to go for static pages?
Also, here is another idea:
An HTML document that loads into a Flash document that is hosted in a Web Object.
Note: It takes a few seconds to load the amuser.com site in the Flash document (with no visual cue). But, a page loader would be easy to add to the .swf file.
Try changing the .html file in the Docs folder to what you want.
:D
rhosk
02-18-2005, 01:35 PM
Does FlashMX 2004 load html now? Curious....'bout time.
I can still get the source with right-click though (in the margin area). This is just the formatting being used is all.
One other way would be to load a html doc and have an "exactfit" parameter transparent flash on a z:index to cover the entire page (I've done this before). Not a fool-proof method, but will keep the average user from accessing the source. It could even be a button saying "get lost" :D
Intrigued
02-18-2005, 01:40 PM
Can you post a sample rhosk? That sounds interesting enough.
:yes
rhosk
02-18-2005, 01:46 PM
Shoot, I knew you'd say that, brb ;)
Intrigued
02-18-2005, 01:55 PM
Another way to do this to mask the Flash object with Worm's SetMask.dll offering. That would take care of the boarder problem. And give us another excuse to use that awesome add-on!
Stefan_M
02-18-2005, 02:36 PM
Maybe this helps.
Script Encoder Overview (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/SeconScriptEncoderOverview.asp)
Stefan_M
Intrigued
02-18-2005, 02:50 PM
Still yet another option would be to have an image of each of your Web page(s) (works for Static pages only, of course) and then load them via one of the Objects in AMS 5 (ie. Image Object or Web Object).
Brett
02-18-2005, 02:54 PM
Is there any way to publish a project using the hard drive folder method and have my html files in the dat folder so individuals can not access my HTML directly? I would normally use the compressed .exe method but for this situation, I need to use the hard drive folder method.
Thanks,
Bryan
Just out of pure curiosity, why would this all be necessary? Under which circumstances would it matter if someone saw the HTML source? I am not criticizing, I am just trying to understand some use cases for this type of thing.
rhosk
02-18-2005, 03:25 PM
Touche, if I see an html document on my screen, I guarantee you that I can get the source. Just the nature of the beast.
Intrigued, I did further testing with the transparent flash overlay and I could still (although minutely - maybe 1/2 pixel) grab the source via right-click. There's really no possible way other than "server side script" - no matter how hard one tries.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.