hai guys..................

hey anybody got i dea abt how to restrict the user from viewing the JS source ..........

pls help

Recommended Answers

All 2 Replies

nop its simply impossible.
you can make your code complex in a way that any body who see your code find it hard to understand but you cant prevent user to see it.

see gmail code how they have done.

GMail's obfuscation isn't intentional, it's a side effect of minifying your javascript to improve speed. Things like JSmin can sometimes cut the size of JS files by half, now imagine if you're Google and you have about 15 million people viewing a page per day, reducing the size of a file by half will significantly reduce badwidth.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.