Protection a js file

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

    #1

    Protection a js file

    Is it possible to prevent a javascript file from being stolen on a web
    site?
    I mean, not protecting 100% is ok, as long as trying to steal it takes
    more time than coding it (took an afternoon).
    Thanks,

    --
    K.


  • Randy Webb

    #2
    Re: Protection a js file

    Kerberos wrote:
    [color=blue]
    > Is it possible to prevent a javascript file from being stolen on a web
    > site?[/color]

    No.
    [color=blue]
    > I mean, not protecting 100% is ok, as long as trying to steal it takes
    > more time than coding it (took an afternoon).[/color]

    It is trivial to steal a script. IE will, generally, give it to you in
    way less time than it took you to write it.


    --
    Randy
    comp.lang.javas cript FAQ - http://jibbering.com/faq

    Comment

    • Lee

      #3
      Re: Protection a js file

      Kerberos said:[color=blue]
      >
      >Is it possible to prevent a javascript file from being stolen on a web
      >site?
      >I mean, not protecting 100% is ok, as long as trying to steal it takes
      >more time than coding it (took an afternoon).
      >Thanks,[/color]

      You seem to have posted this from an "Open Source" forum. Irony?

      Comment

      • Hywel

        #4
        Re: Protection a js file

        In article <opsgcgotwu6byg y2@cinza.mshome .net>, Kerberos says...[color=blue]
        > Is it possible to prevent a javascript file from being stolen on a web
        > site?[/color]

        Yes. Don't link to it and put it in a directory structure that no one
        will ever guess.
        [color=blue]
        > I mean, not protecting 100% is ok, as long as trying to steal it takes
        > more time than coding it (took an afternoon).[/color]

        A whole afternoon? Wow! That must be an amazing piece of coding.


        --
        Hywel


        Comment

        • Kerberos

          #5
          Re: Protection a js file

          Em 23 Oct 2004 18:50:23 -0700, Lee <REM0VElbspamtr ap@cox.net> escreveu:
          [color=blue]
          > You seem to have posted this from an "Open Source" forum. Irony?
          >[/color]

          Actually this is not a script I'm going to give away, and it wouldn't be
          useful anyway, but I found a trade off to make it very difficult to grab.

          --
          K.


          Comment

          • Douglas Crockford

            #6
            Re: Protection a js file

            > Actually this is not a script I'm going to give away, and it wouldn't[color=blue]
            > be useful anyway, but I found a trade off to make it very difficult to
            > grab.[/color]

            That seems unlikely. How difficult? Would you care to place a wager on
            how long it takes any of us to grab it?

            Comment

            • George Hester

              #7
              Re: Protection a js file

              "Douglas Crockford" <nospam@covad.n et> wrote in message news:17f7a$417b ed21$4365de06$2 2270@msgid.mega newsservers.com ...[color=blue][color=green]
              > > Actually this is not a script I'm going to give away, and it wouldn't
              > > be useful anyway, but I found a trade off to make it very difficult to
              > > grab.[/color]
              >
              > That seems unlikely. How difficult? Would you care to place a wager on
              > how long it takes any of us to grab it?[/color]

              I'd sure like to take a stab at it. Never know we might learn something.

              --
              George Hester
              _______________ _______________ ____

              Comment

              • Michael Winter

                #8
                Re: Protection a js file

                On Sun, 24 Oct 2004 14:40:04 -0200, Kerberos <no.spam@please .com> wrote:

                [snip]
                [color=blue]
                > Actually this is not a script I'm going to give away, and it wouldn't be
                > useful anyway, [...][/color]

                Perhaps I'm reading this wrong, but if the script wouldn't be useful to
                other people, why try to hide it? Any "protection " you apply will do
                nothing but add overheads to the script.

                Mike

                --
                Michael Winter
                Replace ".invalid" with ".uk" to reply by e-mail.

                Comment

                • Kerberos

                  #9
                  Re: Protection a js file

                  Em Sun, 24 Oct 2004 22:26:39 GMT, George Hester <hesterloli@hot mail.com>
                  escreveu:
                  [color=blue]
                  > "Douglas Crockford" <nospam@covad.n et> wrote in message
                  > news:17f7a$417b ed21$4365de06$2 2270@msgid.mega newsservers.com ...[color=green][color=darkred]
                  >> > Actually this is not a script I'm going to give away, and it wouldn't
                  >> > be useful anyway, but I found a trade off to make it very difficult[/color]
                  >> to[color=darkred]
                  >> > grab.[/color]
                  >>
                  >> That seems unlikely. How difficult? Would you care to place a wager on
                  >> how long it takes any of us to grab it?[/color]
                  >
                  > I'd sure like to take a stab at it. Never know we might learn something.
                  >[/color]

                  I'm using an encryption system that converts all code into weird
                  characters.
                  Encrypt html source code. Protect website content. Encryption of html,asp,javascript. Image protection

                  Ok, you guys can reverse-engeneer it, but still, small players will just
                  give up.

                  --
                  K.


                  Comment

                  • Lee

                    #10
                    Re: Protection a js file

                    Kerberos said:[color=blue]
                    >
                    >Em Sun, 24 Oct 2004 22:26:39 GMT, George Hester <hesterloli@hot mail.com>
                    >escreveu:
                    >[color=green]
                    >> "Douglas Crockford" <nospam@covad.n et> wrote in message
                    >> news:17f7a$417b ed21$4365de06$2 2270@msgid.mega newsservers.com ...[color=darkred]
                    >>> > Actually this is not a script I'm going to give away, and it wouldn't
                    >>> > be useful anyway, but I found a trade off to make it very difficult
                    >>> to
                    >>> > grab.
                    >>>
                    >>> That seems unlikely. How difficult? Would you care to place a wager on
                    >>> how long it takes any of us to grab it?[/color]
                    >>
                    >> I'd sure like to take a stab at it. Never know we might learn something.
                    >>[/color]
                    >
                    >I'm using an encryption system that converts all code into weird
                    >characters.[/color]

                    But that means that you've also got to be sending a function that
                    decrypts it. That's leaving the key in the lock. All we have to
                    do is turn it.

                    Comment

                    • Duncan Booth

                      #11
                      Re: Protection a js file

                      Kerberos wrote:
                      [color=blue]
                      > I'm using an encryption system that converts all code into weird
                      > characters.
                      > http://www.encrypt-html.com/encrypt_javascript.htm
                      > Ok, you guys can reverse-engeneer it, but still, small players will
                      > just give up.[/color]

                      I hope you didn't pay money for it: so far as I can see it just uses
                      Microsoft's free script encoder. The obfuscated javascript at the top of
                      the sample file simply evaluates to:

                      document.write( '<' + 'script language = JScript.Encode> ')

                      Needless to say, the encoded sample page doesn't display anything when
                      loaded into a non-Microsoft browser such as Mozilla.

                      It took me longer to find the sample page
                      (http://www.protware.com/demo_e.htm) than it did to determine that it is
                      using Microsoft script encoder.

                      If anyone actually wants to read the decoded page then googling for
                      "jscript.en code break" should throw up some ideas pretty quickly (e.g.
                      http://www.klaphek.nl/nr6/scrdec.html).

                      Comment

                      Working...