You are here: Re: how to make html code not visible in firefox « HTML « IT news, forums, messages
Re: how to make html code not visible in firefox

Posted by Floortje on 12/22/06 13:09

Harlan Messinger schreef:

>> First of all i wouldn't recommend hiding your source code.
>>
>> But if you really insist you can make it more difficult. You could use
>> an ajax request to fill the page. That way the final source code wont
>> show up with view source. There are easy methodes of viewing the
>> generated source but imho not many 'simple visitors' know how.
>> Offcourse not all browsers are compatible (many are dough)
>
> And of course this means the website won't be available to people who
> don't have Javascript turned on.

Yup and images wont get displayed if you turn hem of as well :-)

Anyway .. that's easily avoided with some server side scripting.

check if ajax is supported if no session is registered with default no.
Then let the server descide to display the original source code or use
an ajax request

example
// shows the content .. redy to be requested by ajax call
http://www.hondenpage.com/ajaxrequest.php?pid=1
// shows complete page
http:/www.hondenpage.com/index.php?pid=1

offcourse anyone can still view the source by disabling javascript (that
problem allready existed with op) and by requesting the ajaxrequest.php
or viewing thx request headers but normal viewers on a site wont go that
far

Arjen

 

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

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