Reply to Re: Hide HTML Source Code

Your name:

Reply:


Posted by El Kabong on 05/29/07 14:33

And the script begins with:

function clickIE () { if (document.all) return false; }
function clickNS (e) { if (document.layers || (document.getElementById &&
!document.all)) { if (e.which == 2 || e.which == 3) return false; } }
function getXml (url) {
etcetera, etcetera, etcetera...

"David Dorward" <dorward@gmail.com> wrote in message
news:1180446184.212812.86490@q66g2000hsg.googlegroups.com...
> On May 29, 2:14 pm, a...@albert-dominguez.de wrote:
>> Hiding HTML source code is possible.
>
> Not effectively
>
>> It requires JavaScript
>
> Which is run by the browser, so a DOM Inspector can extract the markup
> in about two clicks.
>
>>, but there is no need to encrypt HTML output or do anything else which
>>would
>> decrease performance.
>
> Correct. Hiding the HTML source is pointless.
>
>> I discovered this about five years ago, but at
>> that time it would have been considered bad practice in regards to
>> cross-browser-compatibility.
>
> ... and still is. Hiding all your content from search engines and
> users of Opera Mobile is generally considered a bad idea.
>
>> Now that AJAX has become a programming
>> standard
>
> *snigger*
>
>>, 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/
>
> Oh dear
>
>> If anyone is able to crack this, I would appreciate the feedback.
>
> Two clicks:
>
> <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><h1 class="navFocus"><a
> onclick="getNav(this.id, urls);getXml('http://rss.news.yahoo.com/rss/
> politics');return false;" id="http://rss.news.yahoo.com/rss/politics"
> class="nav" href="javascript:">Politics</a></h1><h1
> class="navFocus"><a onclick="getNav(this.id, urls);getXml('http://
> rss.news.yahoo.
>
>
> (and I won't bother pasting the rest)
>

And the referenced script begins with:

function clickIE () { if (document.all) return false; }
function clickNS (e) { if (document.layers || (document.getElementById &&
!document.all)) { if (e.which == 2 || e.which == 3) return false; } }
function getXml (url) {
etcetera, etcetera, etcetera...

Requires a third click.

Back to the drawing board, friend.

El

[Back to original 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

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