Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

How can I hide my source code from my webpage? html-javascript

HTML

  • Please log in to reply
4 replies to this topic

#1 codehelp

codehelp

    CC Lurker

  • Just Joined
  • Pip
  • 2 posts

Posted 23 July 2010 - 05:08 AM

Hi
Could anybody please tell me how I can hide to my source code of my page. Any method? I heard that we can use javascript encryptor? How can I do this?
  • 0

#2 wim DC

wim DC

    Roar

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 2681 posts
  • Programming Language:Java, JavaScript, PL/SQL
  • Learning:Python

Posted 23 July 2010 - 05:41 AM

Yes, there are encryptors. But people can still decrypt it and see the code.

To hide JavaScript you can send it to the page from the server-side-code.

+ There is a JavaScript forum a bit lower on the main page-->JavaScript and CSS


Edit: If you're doing stuff in the JavaScript that people may not see, you're doing it wrong.
  • 0

#3 Roger

Roger

    Skadoosh!

  • Administrator
  • 1222 posts
  • Programming Language:C, PHP
  • Learning:Others

Posted 23 July 2010 - 08:33 AM

Moved to correct forum.
  • 0

New around here? Click here to register and start participating in under a minute?

Or do a quick search and you may find the answer you're looking for.


#4 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

Posted 23 July 2010 - 10:03 AM

The shortest answer is: you can't. A better answer is: use AJAX, and perform the hidden logic on the server.
  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#5 Guest_johnny.dacu_*

Guest_johnny.dacu_*
  • Guest

Posted 26 July 2010 - 06:54 AM

WingedPanther has given the right answer. I just want to append a little bit. Any resource who is linked in a webpage is directly downloaded on user's computer. Is there is a person who really want's to view your code then even if you encoding somehow with js, your final result shoud be decoded for proper render.
  • 0





Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download