Unstoppable Domains

Is there anyway to hide Javascript?

Spaceship Spaceship
Watch

kishore415

Established Member
Impact
0
I want to hide javascript code shown using 'view source' ...I know one way of doing it by keeping it in an external file .js but I don't want to keep the javascript file as an external file.

Can you please help me , if you know how to this?

Thanks in advance.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
0
•••
You can make it a little harder for someone to read, but technically it is impossible to hide javascript. The reason is that it runs in the browser so the browser must be able to read it. But if the browser can read it, anyone can read it.
 
0
•••
keeping it in an external file does not hide it, it can still be viewed.

also, the method above, if i am thinking correctly, is really easy to bypass.
 
0
•••
well its like the quote " you can't hide html from client but only can make it hard to read " is applicable to JS too.
 
0
•••
Zero posted a good link above.

If you didn't want to go that far, you could always crunch/obfuscate it.
 
0
•••
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back