Skip to main content
stevenm81228622
Participant
November 26, 2017
Answered

Share DW CS4 site hiding the code from the receiver

  • November 26, 2017
  • 4 replies
  • 512 views

I maybe using the wrong terms.  In DW CS4; I would like to send the DW site I made as a Draft without using a host.  Is there a way to send to a local server (my hard drive); send file out and the viewer able to see the end product of the site WITHOUT being able to see the code?

Than ks in advance !!

    This topic has been closed for replies.
    Correct answer John Waller

    the viewer able to see the end product of the site WITHOUT being able to see the code?

    Only if you send them screenshots of the site.

    If they can view it in a browser, they can see the code.

    4 replies

    Jon Fritz
    Community Expert
    Community Expert
    November 27, 2017

    There are other ways you could hide the code from the client, but why go through the trouble?

    If you have a contract to create a website, there's really no reason to hide the code from a paying client.

    I suppose you could write the entire page into the html using javascript, then run an obfuscation script to make the .js file unrecognizable. That would at least make the standard "view source" useless.

    If you don't have a contract, and you're just attempting to drum up business with a "look what I can do" type site, wouldn't it be much, much better to meet the prospective client face to face and show them what you can do from a system you control? That way, you know exactly how the site/portfolio will function in an environment of your choosing and can guide the prospect through it while pointing out the "pro-you" items includedt vs hoping some add-on they're using doesn't stop your advertising piece from working and their in-house web guy doesn't pilfer your hand crafted widgets.

    pziecina
    Legend
    November 27, 2017

    https://forums.adobe.com/people/Jon+Fritz+II  wrote

    I suppose you could write the entire page into the html using javascript, then run an obfuscation script to make the .js file unrecognizable. That would at least make the standard "view source" useless.

    Never tried this for a js generated html page, but would not the 'view generated source' option still give you the generated html code?

    Jon Fritz
    Community Expert
    Community Expert
    November 27, 2017

    Hence my note about the standard view source option.

    pziecina
    Legend
    November 27, 2017

    Important -This solution is not for a none coder.

    One possible way to make a site difficult for someone to view the source code, is to package it as a Phonegap app.

    This would only work on Android devices, without a fee being payable. It would still be possible for someone to view the source code, but that would normally require a developer with a very good knowledge of not just how phonegap works, but also the interest to do so.

    Your site/pages would have to be html5/css/javascript complient, and have no external scripts, just in case the client wished to view/use off-line.

    Nancy OShea
    Community Expert
    Community Expert
    November 26, 2017

    What is your objective by not  hosting the site so everyone can see it online?

    If you're building proprietary code, you should be using server-side scripts like PHP which browsers don't display in the code source.   HTML and client-side code is not protected.  Anyone can see it.

    Or you could upload the site to a password protected folder on a public facing web server.  The only people who could access it would need a valid user ID and password.

    Nancy

    Nancy O'Shea— Product User & Community Expert
    John Waller
    Community Expert
    John WallerCommunity ExpertCorrect answer
    Community Expert
    November 26, 2017

    the viewer able to see the end product of the site WITHOUT being able to see the code?

    Only if you send them screenshots of the site.

    If they can view it in a browser, they can see the code.