Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 310
  • Last Modified:

protect web page source

Hi

What is the best way to protect html & javascript page source? .


Thanks
0
3xtr3m3d
Asked:
3xtr3m3d
1 Solution
 
Darren SharplesSystems SpecialistCommented:
do you mean hide it? if so, you can hide it from showing on the right click on a website but cant get rid of it showing from view - source
0
 
Dave BaldwinFixer of ProblemsCommented:
Since the browser has to be able to download and read it, there is virtually no way to 'protect' the source from copying.
0
 
3xtr3m3dAuthor Commented:
any idea how they doing this?

check the source of this page

http://www.templateaccess.com/demos/adminskins/vectoradmin/

Open in new window

0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
Dave BaldwinFixer of ProblemsCommented:
Yes, the page is written by the javascript.  If you have the Firefox Web Developer plugin, you can 'View Generated Source' and see everything that they have done.  It is obscured by the javascript but it is not hidden, it just takes a little more to see it.
0
 
LAMASECommented:
The js code is obfuscated, too,
You will find lot of javascript obfucator/compressors in google ;)
0
 
3xtr3m3dAuthor Commented:
found a solution though gona try

http://www.ioncube.com/html_encoder.php

Open in new window

0
 
Dave BaldwinFixer of ProblemsCommented:
It's very similar to the first example you gave, it uses javascript to create the page and it will hide it from 'normal' users.  I can still view the generated code with the Firefox Web Developer plugin so it is not 'copy-proof'.
0
 
3xtr3m3dAuthor Commented:
okay got it.  Thanks for the useful information. can you let me know which plugin you used to view source?

Thanks again.
0
 
Dave BaldwinFixer of ProblemsCommented:
Firefox Web Developer  http://chrispederick.com/work/web-developer/  After you install it, click on View Source and there is an option for 'view Generated Source'.
0
 
Dave BaldwinFixer of ProblemsCommented:
By the way, 'Developer Tools' in Chrome automatically shows the generated source as does 'Web Inspector' in Safari.
0
 
3xtr3m3dAuthor Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now