Jump to content

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

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
codehelp

codehelp

    Newbie

  • Members
  • Pip
  • 2 posts
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?

#2
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
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.

#3
Roger

Roger

    If nothing goes right, go left.

  • Administrators
  • 718 posts
Moved to correct forum.
Check out our update Guidelines/FAQ. When posting code, remember to use code tags - Posted Image.

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
The shortest answer is: you can't. A better answer is: use AJAX, and perform the hidden logic on the server.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
Guest_johnny.dacu_*

Guest_johnny.dacu_*
  • Guests
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.