New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

hide html code on my website


Post Reply New Thread Subscribe

 
Thread Tools
daabomb2002

 
Member Since: May 02, 2007
Posts: 1
daabomb2002 is on a distinguished road

daabomb2002 is offline
hi,

i have a website www.linkdumptube.com and when i browse to it,i can see all the source code. is there any way to hide this?

Thanks
QUOTE Thanks
tyros8000

 
tyros8000's Avatar
 
Member Since: May 02, 2007
Posts: 74
tyros8000 is on a distinguished road
Mac Specs: 2.0 ghz Macbook

tyros8000 is offline
no, because this would be controlled through the browser. the browser needs to see the code to show it as you normally see it and so there is no control on the 'view page source' function.
QUOTE Thanks
Thyamine

 
Thyamine's Avatar
 
Member Since: Apr 23, 2007
Location: Coatesville, PA
Posts: 377
Thyamine will become famous soon enough
Mac Specs: MBP 15", 2.33 GHz, 2Gb

Thyamine is offline
There are some things you can do to obfuscate code a bit, but for the most part what tyros8000 said is correct. For your browser to display anything, it needs to download the code and render it for the user. You can remove a lot of white space, new lines, rename functions/variables/objects in javascript, link from files, etc which will help render the html less readable to humans.

There are some programs that will do that for you, or you can do it by hand, but make sure you keep an original copy so that _you_ can understand what your pages are doing.
QUOTE Thanks
tyros8000

 
tyros8000's Avatar
 
Member Since: May 02, 2007
Posts: 74
tyros8000 is on a distinguished road
Mac Specs: 2.0 ghz Macbook

tyros8000 is offline
why do you want to block the code? it is unlikely it will be stolen or anything.
QUOTE Thanks
MacPeterBristol

 
Member Since: May 02, 2007
Posts: 15
MacPeterBristol is on a distinguished road

MacPeterBristol is offline
You can take code from anywhere.
QUOTE Thanks
GulfVetSAF

 
Member Since: Apr 17, 2007
Posts: 225
GulfVetSAF will become famous soon enough

GulfVetSAF is offline
There's really nothing in the code (unless you put it there as in meta tags or something) that's going to do anyone any good... I'm a little curious as to why as well? Although, check out www.microsoft.com's web page... one line of code for the home page... LOL
QUOTE Thanks
Aptmunich

 
Aptmunich's Avatar
 
Member Since: Mar 09, 2004
Location: Munich
Posts: 9,075
Aptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant futureAptmunich has a brilliant future
Mac Specs: Aluminium Macbook 2.4 Ghz 4GB RAM, SSD 24" Samsung Display, iPhone 4, iPad 2

Aptmunich is offline
He probably wants to hide the code as it's a site dubiously designed to help people boost their google rankings by cross-linking anyone who submits their link.

I would point out that google doesn't appreciate artificially boosting your search ranking and frequently blacklists such sites, so participate at your own risk.
QUOTE Thanks
eric06

 
Member Since: Oct 26, 2006
Posts: 467
eric06 has a spectacular aura about

eric06 is offline
Check out this site: http://www.portaldepot.net/articles/HideCode.html

MacBook Pro | 2.33 GHz 3 GB Ram 200 GB HD | Best Choice Ever For A Laptop | 8 GB iPod Touch
QUOTE Thanks
giulio

 
giulio's Avatar
 
Member Since: Mar 19, 2007
Location: NY USA
Posts: 1,813
giulio is just really nicegiulio is just really nicegiulio is just really nicegiulio is just really nice
Mac Specs: iMac 5.1 | iMac 7.1 | iPod Touch | iPod Nano

giulio is offline
You can use Ajax to load the code in drips and drabs. Then, the would-be code-stealer needs some nifty tools to see the code. I have them =)
But uh... it's a b* to do so. You would need really important/wanted content for someone else to go through the trouble of intercepting the ajax http responses. Especially if it's cryptic.

schweb This has to be one of the best threads ever in MF history...
Cherokee This gets my vote for most innovative thread on Mac-Forums... ever.
QUOTE Thanks
AnthonyJK

 
AnthonyJK's Avatar
 
Member Since: Jan 19, 2007
Location: San Jose, CA/Manoa,HI
Posts: 219
AnthonyJK will become famous soon enough
Mac Specs: 13' Black MacBook Core Duo 1.25 GB Ram 80GB HD

AnthonyJK is offline
You can use this, but if the persons not completely computer illiterate they could figure how to reverse it.


http://www.dynamicdrive.com/dynamicindex9/encrypter.htm
QUOTE Thanks

Post Reply New Thread Subscribe


« Server suggestions | Designer in the need of Spry help »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Problems using HTML with Entourage markw10 OS X - Apps and Games 4 09-18-2007 05:18 PM
#include for HTML? mac57 Web Design and Hosting 9 01-14-2007 01:58 PM
creating a feedback forum for my photo website wrightm Web Design and Hosting 1 12-17-2005 06:57 PM
DVD region code contradiction... NanoBite OS X - Operating System 10 11-07-2005 04:38 AM
website html appleworks problems please help! MrPencil Web Design and Hosting 6 10-07-2005 03:57 PM

All times are GMT -4. The time now is 03:22 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?