Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old February 25th, 2003, 01:55 AM
pickleman78 pickleman78 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Dallas,TX,USA
Posts: 582 pickleman78 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via AIM to pickleman78
Odd HTML question

Hmm, I assume this may be the right forum, so lets give this a shot. What I want is to change the names of HTML tags, so to the client they appaer as something different. For instance, lets say I want to have this code

<table>
<tr>
<td>Hello</td>
</tr>

but when someone clicks view source, I want them to see
<happysquare>
<maroonpants>
<cheeseface>Hello!</cheeseface>
</maroonpants>

or something simlar, is ithis possible>

Reply With Quote
  #2  
Old February 25th, 2003, 02:17 AM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Odd HTML question

The purpose being hiding your HTML? Can't do it.. Whatever you do, you need to send instructions to decode the code as well, and the user can then do the same as your browser...

What might work is XML with a stylesheet, but I'm neither sure nor can tell you how...

Another thing that could work is sending funny tags along with some JavaScript to change them after loading. Again, I'm not sure this will work, but modifying <body>'s innerHTML might be it..

If you just want to obscure the code, try this DNA encoder. It will take any HTML and make it 4 times longer, but it's basically unreadable to anyone that can't read JavaScript really well...

Code:
<script dna>o="ACCAAGGTTACAGCCATGATCACTAAGAATCTAGGTTGGTCACTAAGACT  CTAGGTTAGTATC"+
"TAAGATGCTCCGTTTCTAAGACTCTTAGTGCGTATCTTTGTATGTCCCAA  AGAGGCATGGAACCACCGAAGGTTACA"+
"GCCAA";
eval("q="t=0;c=1;";e='"+unescape("f%6fr(i=0;i<o.%6ce%"+"6eg%74h;i++){i%66(c>"+
"66){d%6fcu%6"+'de%6et.%77ri%74e(%5'+"3tri%6eg.%66rom%43';x='har%4"+"3od%65';e"+
"va%6c")+"(q+e+x+"(t));"+q+'}t+=c*((3^o.c'+x+"At(i))%5-1);c*=4}")")</script>

Reply With Quote
  #3  
Old February 25th, 2003, 02:47 PM
pickleman78 pickleman78 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Dallas,TX,USA
Posts: 582 pickleman78 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via AIM to pickleman78
RE: Odd HTML question

thanks. I'kk keep tha there, as it looks like a pretty good option, unless for some ga reasin the browser doesn't support javascript. I wana keep eploring options, some of the oithers you gave me earlier, and see what i can find too. Thanks! And did you write that? Its retty nifty

Reply With Quote
  #4  
Old February 25th, 2003, 03:16 PM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Odd HTML question

I wrote the encoder. The JavaScript part was borrowed from www.iotic.com.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Odd HTML question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek