Jump to content

Hide source code by base_64

- - - - -

  • Please log in to reply
2 replies to this topic

#1
Farel0x

Farel0x

    Newbie

  • Members
  • Pip
  • 3 posts
at first, sorry if i have opened my topic in wrong place, but i need help.
I have been working on my site and i wasted much time on it.
I want to hide my source code with base_64.
if anyone can help me, please write a post as soon as possible.

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
1) To hide your source HTML code with base_64 encoding, you'll have to transmit it enclosed in a JavaScript function, which will then have to use DOM calls to push the content into your page.
2) If this part of a public site, it will guarantee that your site never shows up on the search engines, such as Google.
3) A more flexible, secure, and equally effective method would be to use AJAX to pull content, as needed. This will require PHP or some other server side language to handle the AJAX requests.

All that said, why would you want to do this?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
Doing so will be the opposite of what the web is intended to be, a web page is generally made up of plaintext markup, any method to hide it will penalize you in customer respect (possibly slow, buggy loading on non-compliant browsers) and your search engine presence will be next to nothing. Base64 among any other JS encoding is nearly impossible to be secure as you are literally handing them the method to decode your page on every page for example.

It is a bit silly in my opinion.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users