I want to hide source code

Discussion in 'HTML & Website Design' started by mixtaka, Aug 5, 2010.

  1. #1
    How can i hide source code from my 3-4 page html site
     
    mixtaka, Aug 5, 2010 IP
  2. mjewel

    mjewel Prominent Member

    Messages:
    6,693
    Likes Received:
    514
    Best Answers:
    0
    Trophy Points:
    360
    #2
    If you are talking about the regular html coding, you can't.
     
    mjewel, Aug 5, 2010 IP
  3. mixtaka

    mixtaka Active Member

    Messages:
    267
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #3
    im newbie i dont know either it is regular or whatever. this is my page - http://www.allfacts.info/,

    can you suggest something
     
    mixtaka, Aug 5, 2010 IP
  4. mjewel

    mjewel Prominent Member

    Messages:
    6,693
    Likes Received:
    514
    Best Answers:
    0
    Trophy Points:
    360
    #4
    You can't hide it. If a browser can't download it, it won't display. There are some javascript tricks, but it won't stop someone who really wants to view the source.
     
    mjewel, Aug 5, 2010 IP
  5. Rimona

    Rimona Active Member

    Messages:
    123
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    63
    #5
    Rimona, Aug 5, 2010 IP
  6. mixtaka

    mixtaka Active Member

    Messages:
    267
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #6
    can i hide link or embed code from source code
     
    mixtaka, Aug 5, 2010 IP
  7. mjewel

    mjewel Prominent Member

    Messages:
    6,693
    Likes Received:
    514
    Best Answers:
    0
    Trophy Points:
    360
    #7
    You can't hide links from the source code.

    If you go to the htmlguardian sample demo page http://www.protware.com/e_demo.htm, you can view the source code in about 1 second using firebug.

    Perhaps if you explained exactly what you are trying to accomplish, then there might be a solution. If you are just trying to keep people from seeing a url without clicking it, then you could use url masking - and I would suggest using htaccess with a 301 redirect on a url you make up i.e. www.yoursite.com/url when clicked would take the visitor to any url you want - but the destination url can't be seen without clicking the link. You could find examples and instructions for doing this by searching google.
     
    Last edited: Aug 5, 2010
    mjewel, Aug 5, 2010 IP
  8. Noddegamra

    Noddegamra Peon

    Messages:
    1,013
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #8
    There is no way to hide HTML and CSS code from the public.
    PHP code/functions won't show up though.
    If you're worried about someone copying and pasting your website code (making a duplicate) then you can't really stop that either if it's pure HTML.
     
    Noddegamra, Aug 5, 2010 IP
  9. Clark Bell

    Clark Bell Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    What's so wonderful in source code that anyone would want to take it?
     
    Clark Bell, Aug 5, 2010 IP
  10. mixtaka

    mixtaka Active Member

    Messages:
    267
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #10
    mixtaka, Aug 5, 2010 IP
  11. Rimona

    Rimona Active Member

    Messages:
    123
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    63
    #11
    This is the program they used: http://www.iwebtool.com/html_encrypter

    and here is their HTML
    
    </script><title>How to Get Farm Cash 100% FREE</title>
    
    <link href="http://static.ak.fbcdn.net/connect.php/css/share-button-css" type="text/css" rel="stylesheet"><script src="http://api.ak.facebook.com/restserver.php?v=1.0&amp;method=links.getStats&amp;urls=%5B%22http%3A%2F%2Ffarmville.champz.info%22%5D&amp;format=json&amp;callback=fb_sharepro_render"></script></head><body bgcolor="#666666">
    
    <table align="center" border="2" bordercolor="#ffff00" width="800">
      <tbody><tr bgcolor="#666666">
        <td bgcolor="#009933"><p> 
    </p><p>
    </p>
    <p align="center"><font color="#ffff00" face="Tahoma" size="6"><strong>Get Unlimited Farm Cash 100% FREE</strong></font></p>
    
    <p align="center">&nbsp;</p>
    <p align="center"><img src="http://1.bp.blogspot.com/_hQicw3MgdC4/S6ZFnXprocI/AAAAAAAAAK8/LKvcAiTAylk/s320/Cash.png" border="0"></p>
    <p align="center">&nbsp;</p>
    <p align="center"><font color="#009933" face="Tahoma" size="3"><font color="#ffff00" size="4"><strong>NEVER</strong></font><strong><font color="#ffffff" size="4"> Pay For Farm Cash <font color="#ffff00">EVER</font> Again!!</font></strong></font></p>
    <p align="center">&nbsp;</p>
        </td></tr>
    </tbody></table>
    <br>
    <table align="center" border="2" bordercolor="#ffff00" width="800">
      <tbody><tr bgcolor="#666666">
    
        <td bgcolor="#009933"><p>
        
        </p><p align="center"><font color="#ffff00" face="Tahoma" size="6"><strong><font color="#f7f7f7">To see how to get <font color="#ffff00">free farm cash</font>...</font></strong></font></p>
        <p align="center"><font color="#ffff00" face="Tahoma" size="6"><strong><font color="#f7f7f7"> follow these steps:</font></strong></font></p>
        <p align="center">&nbsp;</p>
    <p align="center"><font color="#f7f7f7" face="Tahoma" size="5"><strong>1:</strong> Like this page</font></p>
    
    <center><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2F67-Notifications-later-and-I-regret-Liking-your-status%2F132378386801288&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" style="border: medium none; overflow: hidden; width: 450px; height: 80px;" allowtransparency="true" frameborder="0" scrolling="no"></iframe></center>
    <p align="center"></p>
    <p align="center">&nbsp;</p>
      </td></tr>
    </tbody></table>
    <br>
    <table align="center" border="2" bordercolor="#ffff00" width="800">
      <tbody><tr bgcolor="#666666">
        <td bgcolor="#009933"><p><font color="#ffff00"><strong><center>
        </center></strong></font>
        </p><p align="center"><font color="#ffffff" face="Tahoma" size="5"><strong>2:</strong> Share this page</font></p>
    
    <p align="center">  <a style="text-decoration: none;" name="fb_share" type="button_count" share_url="http://farmville.champz.info" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Ffarmville.champz.info&amp;src=sp"><span class="fb_share_size_Small "><span class="FBConnectButton FBConnectButton_Small" style="cursor: pointer;"><span class="FBConnectButton_Text">Share</span></span><span class="fb_share_count_nub_right "></span><span class="fb_share_count  fb_share_count_right"><span class="fb_share_count_inner">66K</span></span></span></a>
      <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></p><p>
    </p>
    <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
         <p align="left">&nbsp;</p>
       </td></tr>
    </tbody></table>
    <br>
    <table align="center" border="2" bordercolor="#ffff00" width="800">
    
      <tbody><tr bgcolor="#666666">
        <td bgcolor="#009933"><p> 
    </p><p align="center">&nbsp;</p>
    <p align="center"><font color="#ffffff" face="Tahoma" size="5">3: </font><font color="#ffffff" face="Tahoma">Post this message <u>7</u> times anywhere in related to FarmVille</font></p>
    <form method="POST" action="#" onsubmit="location.href='#';return false;" webbot-onsubmit="" webbot-action="--WEBBOT-SELF--"> 
        
    <p align="center"><font face="Tahoma"><textarea rows="5" name="S1" cols="35">&lt;3
    Sweet!  I just got 117 Farm Cash for FREE!!
    
     &gt;&gt; http://farmville.champz.info &lt;&lt;</textarea></font></p> 
        <p align="center"><font color="#ffff00" face="Tahoma"><u><b><font color="#ffffff">Important</font></b></u><font color="#ffffff"> : The 7 
        posts should be posted in 7 <font size="4"><b>different</b> </font>places</font></font></p>
    
        <p align="center"><font color="#ffffff" face="Tahoma">(You can post it as a status update, review, or just comment on something someone else says)</font></p>
    </form> 
    <font color="#ffff00"><br> 
    </font>
    <center>
      </center></td></tr>
    </tbody></table>
    <br>
    <table align="center" border="2" bordercolor="#ffff00" width="800">
      <tbody><tr bgcolor="#666666">
        <td bgcolor="#009933"><p> 
      </p><p>
    
        </p><center>
          <font color="#ffffff" face="Tahoma" size="5">Checking...</font>
          </center>
      <p></p>
      <p><br>
        </p><center><img src="http://i25.tinypic.com/167unwo.jpg" alt="Image and video hosting by TinyPic" border="0" height="57" width="376"></center><p></p>
      <p><font face="Tahoma"><br>
        </font>
    
        </p><center>
          <font color="#ffffff" face="Tahoma">Status:</font><font color="#ffff00" face="Tahoma"> <font color="#ff0000" size="5"><strong>Not completed    </strong></font></font>
        </center>
        <font face="Tahoma"><br>
        </font><p></p>
      <font face="Tahoma"><br>
      </font>
    
      <center>
    <form>
      <font face="Tahoma">
      <input value=" Finished " onclick="alert( 'Warning!  You have skipped a step!' )" type="button">
      </font>
    </form>
    </center>
      <font face="Tahoma"><br>
      </font>
      <h3 align="center"><font color="#ffffff" face="Tahoma" size="6">Or</font></h3> 
    
    <center><a href="http://farmville.champz.info/farmcash.html" target="_blank"><img src="http://i31.tinypic.com/so05g7.jpg" alt="Image and video hosting by TinyPic" border="0" width="600"></a></center> 
    <p align="center">&nbsp;</p>
    
    <center><script type="text/javascript" src="http://widgets.amung.us/small.js"></script><script type="text/javascript">WAU_small('gqjeeoncc0so')</script><a href="http://whos.amung.us/stats/gqjeeoncc0so/"><img src="http://whos.amung.us/swidget/gqjeeoncc0so/How%20to%20Get%20Farm%20Cash%20100%25%20FREE" title="Click to see how many people are online" border="0" height="15" width="80"></a></center></td>
      </tr>
    </tbody></table>
    </body></html>
    
    HTML:
    There are no secrets out there!
     
    Rimona, Aug 5, 2010 IP
  12. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #12
    And bots like Google Bot can not read the site.

    Bad thing imo.

    Regards,

    Michael
     
    CSM, Aug 5, 2010 IP
  13. mjewel

    mjewel Prominent Member

    Messages:
    6,693
    Likes Received:
    514
    Best Answers:
    0
    Trophy Points:
    360
    #13
    Using something as simple as firebug makes the entire source code readable. It isn't hidden.
     
    mjewel, Aug 5, 2010 IP
  14. asianpersuasian

    asianpersuasian Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    I really appreciate other people trying to look into my work :cool:


    Thanks for sharing my site code.

    As you can tell I own this site and don't appreciate people posting the source code when you could just tell them the site to encrypt at.
     
    asianpersuasian, Sep 2, 2010 IP
  15. asianpersuasian

    asianpersuasian Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Or if I didn't intend on having the site spread via the big G then it would be a great idea. Already had tons of people trying to copy my site and it was drove via FB. A few got past the encryption to copy me but I would just quickly change it up.
     
    asianpersuasian, Sep 2, 2010 IP
  16. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #16
    LOL you can not hide any code, that is not possible.

    Obfuscation does not help in any way. I just open Firebug when the site is shown and... that's it.
    I have the rendered site's code.

    farmville.champz.info is crap anyway, sorry to mention
     
    CSM, Sep 2, 2010 IP
  17. goliveira1990

    goliveira1990 Active Member

    Messages:
    127
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    93
    #17
    anyone can just right click view page source and see your code
     
    goliveira1990, Sep 3, 2010 IP
  18. cools4u

    cools4u Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #18
    One way is to disable right click on the webpage to hide the source code...
     
    cools4u, Sep 4, 2010 IP
  19. ked38

    ked38 Peon

    Messages:
    232
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #19
    Suggest to turn/change your html format code to php code,
    the you can encode the source pages with Zend or similar encoder to hide the source from public.
     
    ked38, Sep 4, 2010 IP
  20. belltower

    belltower Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #20
    1. You can still do it from the menu. [ridiculously simple way]
    2. You can disable javascript and right click [very simple way]
    3. You can read it with Firebug [still rather simple way]

    There is no way to hide html/javascript/css code. Any way you slice it, it still has to go to the client's browser in order for the user to see the site.
     
    belltower, Sep 4, 2010 IP