Results 1 to 10 of 10

Thread: hide html code on my website

  1. #1

    Member Since
    May 02, 2007
    Question hide html code on my website

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


  2. #2
    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
    Coatesville, PA
    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
    why do you want to block the code? it is unlikely it will be stolen or anything.

  5. #5

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

  6. #6

    Member Since
    Apr 17, 2007
    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's web page... one line of code for the home page... LOL

  7. #7

    Aptmunich's Avatar
    Member Since
    Mar 09, 2004
    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
    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
    NY USA
    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
    San Jose, CA/Manoa,HI
    You can use this, but if the persons not completely computer illiterate they could figure how to reverse it.

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 macOS - 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, 10: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