NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Is there anyway to hide Javascript?

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 01-01-2008, 02:16 AM THREAD STARTER               #1 (permalink)
New Member
Join Date: Nov 2007
Posts: 13
kishore415 is an unknown quantity at this point
 



Is there anyway to hide Javascript?


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.
kishore415 is offline  
Old 01-01-2008, 03:32 AM   #2 (permalink)
NamePros Regular
Join Date: Oct 2007
Location: Australia
Posts: 666
zero_haze_au is just really nicezero_haze_au is just really nicezero_haze_au is just really nicezero_haze_au is just really nice
 



Try This: http://www.thescripts.com/forum/thread749685.html
zero_haze_au is offline  
Old 01-01-2008, 03:38 AM   #3 (permalink)
mvl
fka: leonardo
Join Date: Aug 2006
Posts: 712
mvl is a glorious beacon of lightmvl is a glorious beacon of lightmvl is a glorious beacon of lightmvl is a glorious beacon of lightmvl is a glorious beacon of light
 



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.
__________________
ForeignPropertyForSale.com
SATAN.EU VOI.EU
mvl is offline  
Old 01-01-2008, 09:20 AM   #4 (permalink)
Munky Designs
Join Date: May 2005
Posts: 996
Albino is a jewel in the roughAlbino is a jewel in the roughAlbino is a jewel in the rough
 



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.
Albino is offline  
Old 01-01-2008, 09:34 AM   #5 (permalink)
NamePros Regular
Join Date: Jul 2007
Location: INDIA
Posts: 410
anantshri is just really niceanantshri is just really niceanantshri is just really niceanantshri is just really nice
 




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.
__________________
DON"T LEARN TO HACK, HACK TO LEARN
My personal Site | My BLOG
anantshri is offline  
Old 01-05-2008, 11:24 AM   #6 (permalink)
NamePros Regular
 
DylanButler's Avatar
Join Date: Jan 2006
Location: San Diego, CA
Posts: 734
DylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to beholdDylanButler is a splendid one to behold
 



Zero posted a good link above.

If you didn't want to go that far, you could always crunch/obfuscate it.
DylanButler is offline  
Old 01-07-2008, 06:37 AM   #7 (permalink)
New Member
Join Date: Jan 2008
Posts: 5
_khAttAm_ is an unknown quantity at this point
 



Fix Posted


Originally Posted by zero_haze_au
Try This: http://www.thescripts.com/forum/thread749685.html

????: NamePros.com http://www.namepros.com/programming/412928-is-there-anyway-to-hide-javascript.html
Yeah this can be tricked... I've posted the trick there itself ie http://www.thescripts.com/forum/thread749685.html
_khAttAm_ is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 02:26 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger