Welcome Guest ( Log In | Register )



2 Pages V   1 2 >  
Reply to this topicStart new 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: 220
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,022
Joined: 13-July 05
From: Lithuania, Vilnius
Member No.: 7,059



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,025
Joined: 2-August 05
From: Kapellen (Antwerp, Belgium)
Member No.: 7,585



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: 120
Joined: 8-January 08
Member No.: 27,477



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,022
Joined: 13-July 05
From: Lithuania, Vilnius
Member No.: 7,059



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: 750
Joined: 8-April 06
From: Lima - Peru
Member No.: 12,579



QUOTE(Feelay @ Jun 18 2008, 09:56 AM) *
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: 660
Joined: 12-July 06
From: Ontario, Canada
Member No.: 14,464



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) *
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: 750
Joined: 8-April 06
From: Lima - Peru
Member No.: 12,579



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 topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. How To Make A Text Based Online Game Script ?(23)
  2. Online Multiplayer Game(16)
  3. Make Your Own FPS Game(32)
  4. A Solution For Disabled Right Click On Web Page(20)
  5. Counter-Strike Source Clans - Post Your Server IPs(15)
  6. Photoshop Tutorial: How To Make A Userbar For Signatures(34)
  7. PHP Tutorial: Form Verification And Simple Validation(12)
  8. How To Increase Your Google Page Rating ?(12)
  9. How To Make A CS 1.6 Map ?(15)
  10. Site To Create Your Own MMORPGs(33)
  11. Choosing A Different Joomla Start Page(5)
  12. How To Run A Proxy On a Web-Server?(20)
  13. Real Driving(17)
  14. How To Make Windows Xp Faster(30)
  15. Looking For Linux(34)
  1. Powerpoint Based Games!(18)
  2. Make A Wish And It'll Come True...if....(6)
  3. How To Make A PM (Personal Message) System?(4)
  4. How To Make An Test-based Rpg Game!(4)
  5. How To Make A Private Message System.(9)
  6. How To Make Your Own Web Host(2)
  7. View New Posts Not Working(12)
  8. Anyone Willing To Make A Text-based Game With Me?(4)
  9. Make Money Online With Cashcrate - A Scam?(4)
  10. Hidden A Page Url(1)
  11. Hacked By Dumansal(2)
  12. Is It Possible To Make Php Scripts Executed Without A Cron?(2)
  13. Center Update(5)


 



- Lo-Fi Version Time is now: 8th September 2008 - 04:16 PM