troubleshooting Question

Any way for Javascript to sense that it's been deminified?

Avatar of steva
steva asked on
8 Comments2 Solutions411 ViewsLast Modified:
Is there any way to sense that your code is running deminified, because some has turned on  something like the JS Deminifier extension in Firefox?  You might then abort to try to keep people from trying to reverse engineer your product.  I'm thinking maybe there's some action you can take that behaves differently in minified and demilnified code.  One thing that will be different is the timing. If the browser has to stop and deminify something before continuing you could possibly force a script to fail because some script it needs  hasn't loaded yet.  Just wondering if anyone has thought this through as a possible way to protect their code.

Join our community to see this answer!
Unlock 2 Answers and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros