Results 1 to 10 of 10
  1. #1


    Member Since
    May 02, 2007
    Posts
    1
    Question hide html code on my website
    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

  2. #2

    tyros8000's Avatar
    Member Since
    May 02, 2007
    Posts
    74
    Specs:
    2.0 ghz Macbook
    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.

  3. #3

    Thyamine's Avatar
    Member Since
    Apr 23, 2007
    Location
    Coatesville, PA
    Posts
    377
    Specs:
    MBP 15", 2.33 GHz, 2Gb
    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.

  4. #4

    tyros8000's Avatar
    Member Since
    May 02, 2007
    Posts
    74
    Specs:
    2.0 ghz Macbook
    why do you want to block the code? it is unlikely it will be stolen or anything.

  5. #5


    Member Since
    May 02, 2007
    Posts
    15
    You can take code from anywhere.

  6. #6


    Member Since
    Apr 17, 2007
    Posts
    225
    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

  7. #7

    Aptmunich's Avatar
    Member Since
    Mar 09, 2004
    Location
    Munich
    Posts
    9,073
    Specs:
    Aluminium Macbook 2.4 Ghz 4GB RAM, SSD 24" Samsung Display, iPhone 4, iPad 2
    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.

  8. #8


    Member Since
    Oct 26, 2006
    Posts
    467
    MacBook Pro | 2.33 GHz 3 GB Ram 200 GB HD | Best Choice Ever For A Laptop | 8 GB iPod Touch

  9. #9

    giulio's Avatar
    Member Since
    Mar 19, 2007
    Location
    NY USA
    Posts
    1,813
    Specs:
    iMac 5.1 | iMac 7.1 | iPod Touch | iPod Nano
    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.

  10. #10

    AnthonyJK's Avatar
    Member Since
    Jan 19, 2007
    Location
    San Jose, CA/Manoa,HI
    Posts
    219
    Specs:
    13' Black MacBook Core Duo 1.25 GB Ram 80GB HD
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. iweb html code
    By brokersite in forum Web Design and Hosting
    Replies: 0
    Last Post: 07-10-2013, 10:10 PM
  2. Replies: 15
    Last Post: 06-29-2012, 09:54 PM
  3. Quicktime preferences code hide menu bar
    By dpro in forum OS X - Apps and Games
    Replies: 1
    Last Post: 03-14-2012, 10:32 AM
  4. HTML code over photo grid
    By starbound25 in forum Web Design and Hosting
    Replies: 0
    Last Post: 05-30-2010, 05:17 PM
  5. Html Code Generator for Mac
    By ImogenWilson in forum Web Design and Hosting
    Replies: 4
    Last Post: 02-01-2009, 09:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •