restrict source view

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Jan 2008
Posts: 13
Reputation: ashercharles is an unknown quantity at this point 
Solved Threads: 0
ashercharles ashercharles is offline Offline
Newbie Poster

restrict source view

 
0
  #1
Feb 15th, 2008
hai guys..................

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

pls help
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 483
Reputation: DangerDev has a spectacular aura about DangerDev has a spectacular aura about 
Solved Threads: 58
DangerDev's Avatar
DangerDev DangerDev is offline Offline
Posting Pro in Training

Re: restrict source view

 
0
  #2
Feb 15th, 2008
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.
Freedom in the Mind, Faith in the words.. Pride in our Souls...
Indian Developer
http://falaque.wordpress.com/
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 1,403
Reputation: ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light ShawnCplus is a glorious beacon of light 
Solved Threads: 224
Sponsor
ShawnCplus's Avatar
ShawnCplus ShawnCplus is offline Offline
Code Monkey

Re: restrict source view

 
0
  #3
Feb 15th, 2008
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.
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC