Solved

protect web page source

Posted on 2011-02-26
11
303 Views
Last Modified: 2012-05-11
Hi

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


Thanks
0
Comment
Question by:3xtr3m3d
11 Comments
 
LVL 6

Expert Comment

by:Darren Sharples
ID: 34988752
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
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 34988775
Since the browser has to be able to download and read it, there is virtually no way to 'protect' the source from copying.
0
 
LVL 3

Author Comment

by:3xtr3m3d
ID: 34988791
any idea how they doing this?

check the source of this page

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

Open in new window

0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 34988804
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
 
LVL 4

Expert Comment

by:LAMASE
ID: 34988949
The js code is obfuscated, too,
You will find lot of javascript obfucator/compressors in google ;)
0
 
LVL 3

Author Comment

by:3xtr3m3d
ID: 34989237
found a solution though gona try

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

Open in new window

0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 34989385
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
 
LVL 3

Author Comment

by:3xtr3m3d
ID: 34989999
okay got it.  Thanks for the useful information. can you let me know which plugin you used to view source?

Thanks again.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 34990012
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
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 34990020
By the way, 'Developer Tools' in Chrome automatically shows the generated source as does 'Web Inspector' in Safari.
0
 
LVL 3

Author Comment

by:3xtr3m3d
ID: 34990892
thanks
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now