Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>If it gets downloaded to the user agent (web browser) at any point, you can't truly hide it.</strong> </p> <p>If you have a complex/proprietary process, run it on a server (in any language you choose, including JavaScript) and return only the results to the browser.</p> <p>As noted in the comments, you can make <em>interpreting</em> the source more difficult by minifying/obfuscating the code.</p> <p>Minification can make your scripts significantly smaller and combine multiple files into one, so it's definitely a good thing; just not a security mechanism. Minifying code usually (directly or indirectly) obfuscates the code, i.e. it is harder to read and interpret, but still fully accessible to a mildly determined observer.</p> <p>For reference, this is a good list of minification tools: <a href="https://stackoverflow.com/questions/3520285/is-there-a-good-javascript-minimizer">Is there a good JavaScript minifier?</a></p> <blockquote> <p>Now that I think about it, wouldn't external .js with permissions set to "execute only" do the trick or it wouldn't load at all?</p> </blockquote> <p>That's a server-related permission. If code can be executed by the browser, a determined (or even casual) user can get the source.</p> <blockquote> <p>I want to avoid server side languages, because I have cheap hosting. More users would kill my site.</p> </blockquote> <p>See <a href="https://webmasters.stackexchange.com/questions/20838/how-to-find-web-hosting-that-meets-my-requirements">How to find web hosting that meets my requirements?</a></p> <p>You can develop on your own machine using free tools and even the most basic hosting packages usually offer at least one server-side language.</p> <blockquote> <p><em>It's a blessing html5 cannot use .dlls ;o)</em></p> <p>If you want closed source website that's running mostly on client side... whatever...</p> </blockquote> <p>That would be utter hell with native code...the DLLs would need to be compiled into machine code for every platform. Using intermediate code (like CIL) which would still require that every user had a runtime installed, it would be nearly as easy to reverse engineer as JavaScript.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload