Welcome Guest ( Log In | Register )




                Web Hosting Guide

2 Pages V   1 2 >  
Reply to this topicNew Topic
Make It Impossible To View Page Source
Feelay
post Jun 18 2008, 02:56 PM
Post #1


Kinda N00B
Group Icon

Group: Members
Posts: 235
Joined: 13-January 08
From: Sweden
Member No.: 27,579


Hi!

I was just wondering if it is possible to make username unable to view the page source.. I know that you can disable right click, but still, they can go to the page source from the navigation menu on the top of the browser.. if possible, I would really like a code that works on all browsers. Or if you know different codes that works on different browsers..

Thanks //Feelay
Go to the top of the page
 
+Quote Post
Miles
post Jun 18 2008, 04:03 PM
Post #2


Advanced Member
Group Icon

Group: [HOSTED]
Posts: 177
Joined: 25-December 07
Member No.: 27,129


Nope, not possible. HTML will always be visible, no matter what you try. Some people foolishly believe that javascript so-called 'html encryptors' protect your source, but this is untrue. They merely change it to hexadecimal coding.
Go to the top of the page
 
+Quote Post
Quatrux
post Jun 18 2008, 04:17 PM
Post #3


the Q
Group Icon

Group: [HOSTED]
Posts: 1,314
Joined: 13-July 05
From: Lithuania, Vilnius
Member No.: 7,059
myCENTs:14.53


If you want to hide the source of your html page, just make it blank, then no one will see anything, even the browser, because you won't have anything to show, so if the coding would be encrypted one way, when how would the browser know what to show? there is no point to hide HTML, if the browser can show your page, when it means that anyone can view your source.. people think that their html is so cool that there is some kind of point to hide it.. Even though everyone is stealing the source and using it or learn from it, for example Javascript, I usually just look into the source how it is done.. More serious thing is the stealing of images, usually a watermark or some logo at the bottom right side helps tongue.gif

So there is no way and I don't think there will be in the future, but maybe someone will think of something.
Go to the top of the page
 
+Quote Post
wutske
post Jun 18 2008, 09:05 PM
Post #4


Way Out Of Control - You need a life :)
Group Icon

Group: [HOSTED]
Posts: 1,267
Joined: 2-August 05
From: Kapellen (Antwerp, Belgium)
Member No.: 7,585
myCENTs:4.00


There is no use to hide the page source, I mean, the only thing people see is dynamicly generated HTML code ... they see nothing of your PHP source code.
If you're woried about people stealing your lay-out, then code most of it in an unlogic organized CSS cool.gif .
Go to the top of the page
 
+Quote Post
docduke
post Jun 18 2008, 11:50 PM
Post #5


Advanced Member
Group Icon

Group: [MODERATOR]
Posts: 152
Joined: 8-January 08
Member No.: 27,477
myCENTs:59.10


You need to think through what you want to protect. Browsers are simply source-code compilers. Feed them a text and binary stream of data, and they convert it into a graphical layout on the client computer screen. The server side has complete control of the data stream.

One very common choice is to use PHP, CGI, etc. to generate html text. The resulting data stream cannot be hidden, because otherwise the client browser has nothing to work on. Alternatively, the server side could do the layout itself and just send a graphic (e.g. JPG) image. This has the advantage that the client experiences "what you see is what you get," but many people with different screen sizes (for example, on a cell-phone browser) may find it completely unusable. Visually impaired users may want their browser to read the screen in audio. That would not be possible.

Generating code for a browser is like writing a book. First, decide who your audience is. Then decide what that audience wants. Then give it to them, in a form that does not cause you unnecessary problems. If you go through that analysis systematically, you are left simply with the choice of tools to facilitate this process.
Go to the top of the page
 
+Quote Post
Quatrux
post Jun 19 2008, 04:41 AM
Post #6


the Q
Group Icon

Group: [HOSTED]
Posts: 1,314
Joined: 13-July 05
From: Lithuania, Vilnius
Member No.: 7,059
myCENTs:14.53


Another good reason to hide the page source is, even I have seen it happen for my websites, when browsing google, I saw my site being used, I mean the layout page source was stolen and put somewhere else on a server for a Chinese free hosting or something like that and different ads were put up and that really made me mad tongue.gif
Go to the top of the page
 
+Quote Post
TavoxPeru
post Jun 19 2008, 06:00 AM
Post #7


Super Member
Group Icon

Group: [HOSTED]
Posts: 876
Joined: 8-April 06
From: Lima - Peru
Member No.: 12,579
myCENTs:13.21


QUOTE(Feelay @ Jun 18 2008, 09:56 AM) [snapback]124687[/snapback]
Hi!

I was just wondering if it is possible to make username unable to view the page source.. I know that you can disable right click, but still, they can go to the page source from the navigation menu on the top of the browser.. if possible, I would really like a code that works on all browsers. Or if you know different codes that works on different browsers..

Thanks //Feelay

As far as i know there is no way to perform that, what you can do is to obfuscate the html code by encrypt it, about the php code you can use an encoder to encode your code prior to distribute them to your client.

One php encoder that i know and you can use is PHTML Encoder, comes in two versions -free and pro- and the free one is available to download from here. You can use this with all versions of PHP between 4.0.6 and 5.2.4.

QUOTE
What is PHTML Encoder?
The PHTML Encoder (formerly-PHP Encoder) allows encoding PHP scripts before distributing them. The script code logic is preserved while using cryptography to hide your logic from prying eyes. It is possible to lock encoded scripts to predefined machine (Web server) via machine ID so your scripts will work only on this machine. You can use self-decodable scripts, which do not require any changes to your PHP installation. Because PHTML Encoder is a cross-platform product, this software will work on ALL computer and server platforms which support PHP. The PHTML Encoder includes console and GUI versions of converter for encryption/decryption of your scripts. You can use wildcards to easily convert a whole project. The PHTML Encoder is transparent to your visitors. It is possible to combine protected and unprotected scripts on one web site.

Best regards,
Go to the top of the page
 
+Quote Post
FirefoxRocks
post Jun 19 2008, 02:34 PM
Post #8


Super Member
Group Icon

Group: [HOSTED]
Posts: 858
Joined: 12-July 06
From: Ontario, Canada
Member No.: 14,464
myCENTs:79.78


To view the source of ANY page:

1. Go to this: http://validator.w3.org/#validate_by_uri+with_options
2. In the Address field, enter the URL of the page you want to view source of.
3. Check the box called Show Source.
4. Click Check.

Ignore (X)HTML errors if you aren't interested, but the validator will display the source along with markup errors if it is a page with valid character encoding.
Go to the top of the page
 
+Quote Post
Miles
post Jun 19 2008, 06:52 PM
Post #9


Advanced Member
Group Icon

Group: [HOSTED]
Posts: 177
Joined: 25-December 07
Member No.: 27,129


QUOTE(TavoxPeru @ Jun 19 2008, 07:00 AM) [snapback]124737[/snapback]
As far as i know there is no way to perform that, what you can do is to obfuscate the html code by encrypt it, about the php code you can use an encoder to encode your code prior to distribute them to your client.

One php encoder that i know and you can use is PHTML Encoder, comes in two versions -free and pro- and the free one is available to download from here. You can use this with all versions of PHP between 4.0.6 and 5.2.4.


Best regards,

Obfuscating HTML coding is not particularly useful. Whilst changing the names of elements can be frustrating to people who want to steal, it won't stop them, just like javascript based html 'encoders'. As for PHP encoding, it's only really useful to prevent hack attacks on site's by encrypting the coding, for scripts that will be redistributed it is an annoyance and will deter users.
Go to the top of the page
 
+Quote Post
TavoxPeru
post Jun 22 2008, 12:35 PM
Post #10


Super Member
Group Icon

Group: [HOSTED]
Posts: 876
Joined: 8-April 06
From: Lima - Peru
Member No.: 12,579
myCENTs:13.21


As i said in my previous post, you can obfuscate your HTML code to hide it from prying eyes using some kind of encryption method or with an html encoder, like this one HTML Encoder - Encode URL, Text and Decoder that i just found at the Audit My PC website.

The HTML Encoder tool is free and very easy to use. You can use to encode or decode html, url or text. Additionally at the bottom of the same page you will find a tool to help you to escape or unescape text called the Text Escape tool, this tool will look for any special characters and escape them.

So, take a look to the HTML Encoder - Decoder tool may be it can helps you.

Edit: The Encode/Decode HTML entities is another tool which you can use to convert text to HTML entities.

Best regards,

This post has been edited by TavoxPeru: Aug 1 2008, 02:50 AM
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicNew Topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   7 Curt200518 269 Yesterday, 10:29 PM
Last post by: yordan
No New Posts   0 Cadey 22 21st November 2009 - 05:52 PM
Last post by: Cadey
No new   61 Nqon 11,566 11th November 2009 - 09:04 PM
Last post by: iG-Guest
No New Posts   8 im 10 but im a geek 682 10th November 2009 - 08:52 PM
Last post by: HannahI
No New Posts   10 Jimmy89 2,483 10th November 2009 - 03:31 PM
Last post by: iG-Will
No New Posts   0 candywanyhhh 80 9th November 2009 - 10:22 AM
Last post by: candywanyhhh
No New Posts   4 kaaamooo 619 4th November 2009 - 08:28 AM
Last post by: MJboy
No New Posts   9 Sizux 7,711 3rd November 2009 - 11:28 PM
Last post by: iG-MomaNana2008
No new   22 Feelay 2,912 3rd November 2009 - 08:13 PM
Last post by: starscream
No New Posts   0 MikyZuma 84 24th October 2009 - 10:28 AM
Last post by: MikyZuma
No New Posts   0 fermin25 22 23rd October 2009 - 03:40 PM
Last post by: fermin25
No New Posts   3 surfermac 98 22nd October 2009 - 07:15 PM
Last post by: starscream
No new   30 x2crazy4shadyx 7,634 16th October 2009 - 05:02 AM
Last post by: iG-RidingKeysLamp
No New Posts   4 HannahI 103 12th October 2009 - 05:17 PM
Last post by: HannahI
No New Posts   5 austiniskoge 2,132 12th October 2009 - 02:35 PM
Last post by: iG-John Dyke


Web Hosting Powered by ComputingHost.com.