FAQ Topic - How do I protect my javascript code?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • FAQ server

    FAQ Topic - How do I protect my javascript code?

    -----------------------------------------------------------------------
    FAQ Topic - How do I protect my javascript code?
    -----------------------------------------------------------------------

    In the main, you can't as your code is distributed in source
    form and is easily readable. With JScript, there is the Script
    Encoder (see MSDN), but this is nothing more than obfuscation.
    Disabling the right mouse button also does nothing to protect
    your script in a Web browser.

    Your code is likely protected under copyright laws. See:

    Find out more about copyright including international copyright issues, WIPO services for creators and registering copyright, and collective management.





    ===
    Postings such as this are automatically sent once a day. Their
    goal is to answer repeated questions, and to offer the content to
    the community for continuous evaluation/improvement. The complete
    comp.lang.javas cript FAQ is at http://www.jibbering.com/faq/.
    The FAQ workers are a group of volunteers.

  • Info_Junkie

    #2
    Re: FAQ Topic - How do I protect my javascript code?


    FAQ server wrote:
    -----------------------------------------------------------------------
    FAQ Topic - How do I protect my javascript code?
    -----------------------------------------------------------------------
    >
    In the main, you can't as your code is distributed in source
    form and is easily readable. With JScript, there is the Script
    Encoder (see MSDN), but this is nothing more than obfuscation.
    Disabling the right mouse button also does nothing to protect
    your script in a Web browser.
    >
    Your code is likely protected under copyright laws. See:
    >
    Find out more about copyright including international copyright issues, WIPO services for creators and registering copyright, and collective management.

    >

    >
    >
    ===
    Postings such as this are automatically sent once a day. Their
    goal is to answer repeated questions, and to offer the content to
    the community for continuous evaluation/improvement. The complete
    comp.lang.javas cript FAQ is at http://www.jibbering.com/faq/.
    The FAQ workers are a group of volunteers.
    I fully admit to being a "noob" here. Why I joined the newsgroup, to
    learn, and I do every day. That being said, I have seen many sites
    that "rightly" use an external "*.js" file. Thus, it is on the server
    side, and I THINK it cannot be accessed by the end user. Please tell
    me if I am wrong. Thanks!

    Info_Junkie

    Comment

    • Evertjan.

      #3
      Re: FAQ Topic - How do I protect my javascript code?

      FAQ server wrote on 11 okt 2006 in comp.lang.javas cript:
      -----------------------------------------------------------------------
      FAQ Topic - How do I protect my javascript code?
      -----------------------------------------------------------------------
      >
      In the main, you can't
      What nonsense.

      The illusion that "javascript " means "clientside javascript"
      should not be part of the FAQ.

      Suggestion of title change:

      === FAQ Topic - How do I protect my clientside javascript code?
      ... as your code is distributed in source form and is easily readable.
      Because serverside j[ava]script is not neccessarily distributed at all.

      --
      Evertjan.
      The Netherlands.
      (Please change the x'es to dots in my emailaddress)

      Comment

      • Richard Cornford

        #4
        Re: FAQ Topic - How do I protect my javascript code?

        Info_Junkie wrote:
        FAQ server wrote:
        <snip>
        >In the main, you can't as your code is distributed
        >in source form and is easily readable. ...
        <snip>
        I fully admit to being a "noob" here. Why I joined
        the newsgroup, to learn, and I do every day. That
        being said, I have seen many sites that "rightly"
        use an external "*.js" file. Thus, it is on the server
        side, and I THINK it cannot be accessed by the end user.
        Please tell me if I am wrong.
        You are wrong. Open IE and open the "Internet options" dialog from the
        menu, select "Settings.. ." on the "General" tab and then the "View Files"
        button to see the browser's disc cache. Now tell us how many of the JS
        files you see there stayed on the server.

        Richard.


        Comment

        • Tim Slattery

          #5
          Re: FAQ Topic - How do I protect my javascript code?

          "Info_Junki e" <mrj7777777@yah oo.comwrote:
          >I fully admit to being a "noob" here. Why I joined the newsgroup, to
          >learn, and I do every day. That being said, I have seen many sites
          >that "rightly" use an external "*.js" file. Thus, it is on the server
          >side, and I THINK it cannot be accessed by the end user. Please tell
          >me if I am wrong. Thanks!
          Wrong. You can type the URL for that *.js file into your browser's
          address bar and it will get it for you. If it wasn't accessible the
          browser could never get it, and therefore it would not have access to
          the JavaScript code contained in it.

          --
          Tim Slattery
          Slattery_T@bls. gov

          Comment

          Working...