You are here: Re: Hide HTML Source Code « HTML « IT news, forums, messages
Re: Hide HTML Source Code

Posted by Harlan Messinger on 05/29/07 17:34

ad@albert-dominguez.de wrote:
> Hiding HTML source code is possible. It requires JavaScript, but there
> is no need to encrypt HTML output or do anything else which would
> decrease performance. I discovered this about five years ago, but at
> that time it would have been considered bad practice in regards to
> cross-browser-compatibility. Now that AJAX has become a programming
> standard, the time has come to let this loose on the the public. I
> won't tell you how I do it, but I will provide you with a working
> example.
>
> http://www.smart-cgi.com/api/
>
> If anyone is able to crack this, I would appreciate the feedback.

Firefox's DOM Inspector--from the context menu for the HTML element,
Copy XML to get the following on the Windows clipboard:

<HTML lang="en" dir="ltr" xml:lang="en"
xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<SCRIPT type="text/javascript" src="./js.js"/>
<TITLE>
Smart-CGI.com </TITLE>
<META content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
<LINK type="text/css" href="./default.css" rel="stylesheet"/>
</HEAD>
<BODY onload="getNav('http://rss.news.yahoo.com/rss/topstories',
urls);getXml('http://rss.news.yahoo.com/rss/topstories');return false;">
<DIV class="headmast">
<A href="../">
<IMG style="border: medium none ; padding-left: 8px;"
alt="Smart-CGI.com" src="../img/logo.gif"/>
</A>
</DIV>
<DIV id="nav">
<DIV class="navWrapper">
<H1 class="navBlur">
Top Stories </H1>
<H1 class="navFocus">
<A
onclick="getNav(this.id,
urls);getXml('http://rss.news.yahoo.com/rss/world');return false;"
id="http://rss.news.yahoo.com/rss/world" class="nav"
href="javascript:">
World News </A>
</H1>
<H1 class="navFocus">
<A
onclick="getNav(this.id,
urls);getXml('http://rss.news.yahoo.com/rss/us');return false;"
id="http://rss.news.yahoo.com/rss/us" class="nav"
href="javascript:">
U.S. News </A>
</H1>

[etc.]
It isn't the original source code, but it generates the equivalent page.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация