Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6180605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:52:25+00:00 2026-05-24T00:52:25+00:00

First, this could look like duplicate for How to prevent your JavaScript code from

  • 0

First, this could look like duplicate for

How to prevent your JavaScript code from being stolen, copied, and viewed ?

And other, but it’s not.

I search for ideas that can do, that stealing of JS can be very hard

Some of my examples:

  • of course obfuscate code
  • use a document.location an check if some
    letter in domain equals to letter on that position where script
    normally works
  • use part of this location in function call, something like eval(‘first_part_of_function_name’+part_from_location+’third_pard(parameters)’);
  • store some important constant need in application in some element in your page-design, and get it from there in JS like $('#header div.onright a rel')
  • get some portion of script by AJAX and eval() it
  • add to script some unnecessary function, instructions.
  • check for existance of some elements in page (copyright text on footer)
  • generate some time-variable hash in PHP and put in JS, where will be function that checks this hash and current time to work or not
  • maybe use of other JS files ? or events binded to elements hidden in very common scripts (like bind some action in jquery-min.X.X.X.js file where all jquery is.

Are they good ideas ? Have some more ? I think that most important can be variety of things wich you can do with document location, is that the only element that will be driffrent than working in normal coditions on our site ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T00:52:26+00:00Added an answer on May 24, 2026 at 12:52 am

    No matter how complex you make your code, it can always be read, if necessary with abstract interpretation, i.e. automatically capturing the essence of your code. Code without knowledge of internals, variable names (I assume you’re already using minimization, for example with the YUI compressor), documentation, support, and generalization is worthless for anyone else.

    If a competitor (or potential customers) of yours is stealing your code, consider simply suing them. If it’s some random guy on the internet, why do you care?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

(At first glance this may look like a duplicate of Different execution plan when
Code first: '''this is main structure of my program''' from twisted.web import http from
In a shell script I have a variable $PATH which could look like this:
Perfectly normal radio buttons in HTML look like this: <input type=radio name=somename value=1>First</input> <input
Just could not get this one and googling did not help much either.. First
Could someone explain this (strange) behavior? Why is the length in the first example
Saw this piece of code in a Ruby on Rails book. This first one
First off, if this is a duplicate, I apologize. I did quite a bit
First off, before I ask, i would like to point out that this question
I'm looking at a table structure that might look about like this: | char(32)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.