Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Help Hiding a html code
Old 05-09-2008, 07:46 PM Help Hiding a html code
Experienced Talker

Posts: 48
Name: Doug Muraski
Trades: 0
Is there a way to hide a html code but still have it appear --I am trying to hide the code from bots is there any type of code to do this.
doug66 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-09-2008, 08:18 PM Re: Help Hiding a html code
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
No, there is no way of doing that.
HTML don't allow anything like that.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 05-09-2008, 08:28 PM Re: Help Hiding a html code
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
Try a graphic. Might be able to modify the captcha script on my site (see sig -- then FAQ)
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 05-09-2008, 08:33 PM Re: Help Hiding a html code
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Write it onto the document with javascript
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-09-2008, 08:39 PM Re: Help Hiding a html code
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
christhirst has the best suggestion!

Something like

HTML Code:
<script>
//For the codes to use for each letter, see http://www.asciitable.com/
document.write(String.fromCharCode(52,65,110,76,120));
</script>
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 05-09-2008, 10:13 PM Re: Help Hiding a html code
Inet411's Avatar
Skilled Talker

Posts: 88
Name: programmer
Location: internet
Trades: 0
This may help:
http://www.voormedia.com/en/tools/ht...-scrambler.php

You can google for ways to obfuscate your code server side using php or client side using javascript. There are many many options and ways to do this. Remember though any method of obfuscating code can be cracked, but for a typical screen scraping bot you'll be okay.
__________________

Please login or register to view this content. Registration is FREE

Inet411 is offline
Reply With Quote
View Public Profile Visit Inet411's homepage!
 
Old 05-09-2008, 10:17 PM Re: Help Hiding a html code
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
Anything can be cracked or hacked except the one-time encryption pad. The method chrishirst suggested is the easiest to implement and does very well.
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 05-09-2008, 11:39 PM Re: Help Hiding a html code
Inet411's Avatar
Skilled Talker

Posts: 88
Name: programmer
Location: internet
Trades: 0
Mr. Miller and chrishirst are on the money.
example:

Putting this on your website:
HTML Code:
<script language="JavaScript" type="text/javascript">
var i,y,x="3c68746d6c3e0d0a3c686561643e0d0a3c7469746c653e526f6220697320636f6f6c3c2f7469746c653e0d0a3c2f686561643e0d0a3c626f64793e0d0a48656c6c6f20576f726c64210d0a3c2f626f64793e0d0a3c2f68746d6c3e";y='';for(i=0;i<x.length;i+=2){y+=unescape('%'+x.substr(i,2));}document.write(y);
</script>
is actually:
HTML Code:
<html>
<head>
<title>Rob is cool</title>
</head>
<body>
Hello World!
</body>
</html>
So when someone visits your site they will see Rob is cool in their browser. A bot will see nothing. But the downfall of that is search engine spiders will also see nothing.


What exactly are you trying to hide? If its a form, there are much better ways of preventing bots such as captcha (Completely Automated Public Turing Test to Tell Computers and Humans Apart) etc...
__________________

Please login or register to view this content. Registration is FREE

Inet411 is offline
Reply With Quote
View Public Profile Visit Inet411's homepage!
 
Reply     « Reply to Help Hiding a html code
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.18931 seconds with 12 queries