`domainLock` not working
See original GitHub issueI’m unable to use the domainLock
config. I get data is not defined
whenever I use it.
Expected Behavior
I expect passing a list of domain names to domainLock
to lock the obfuscated scripts to those domains.
Current Behavior
Passing any domains to domainLock
makes the script throw data is not defined
regardless of what domain it’s visited on.
Steps to Reproduce (for bugs)
Using javascript-obfuscator version 0.15 or 0.16, obfuscate the script with the following options:
const OBFUSCATION_OPTIONS = {
domainLock: ['.examplea.com', '.exampleb.com'],
};
Finally, run a web server and point examplea.com or exampleb.com to localhost in your /etc/hosts
file then try to load the script in an html file.
EDIT: This is also reproducible on https://obfuscator.io. If you obfuscate the sample script and lock it to .obfuscator.io
then try to evaluate it, it’ll fail.
Your Environment
- Version used: 0.15 and 0.16
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Change your domain lock setting - Google Support
Click Registration settings. Scroll down to Domain lock. Toggle Lock domain / Unlock domain to change the domain's lock setting. Restrictions for domain...
Read more >About Locked Domain - ICANN
Domain names can be locked to protect against unauthorized changes. This status may be called "Registrar lock" or "Client Transfer Prohibited" (or a...
Read more >Domain Security: How To Unlock A Domain
On the dashboard, select the domain you are working on. ... Toggle the Domain Lock to Green or to the Right. Domain lock...
Read more >Why is my domain locked for 60 days?
If your domain's registrar is a third-party (such as GoDaddy or Google), some providers will lock your domain for 60 days if you...
Read more >Why Is Domain Locked & Where To Unlock It? - Monsterhost
What causes domains to lock? · 1. Domains expire · 2. Domain Age · 3. Change Registrant · 4. Legal Issues.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
0.17.0 version in out!
Reproduced it. Will fix it soon.